Skip to content

Commit 8669997

Browse files
committed
Polish whitespace in ConfigurationClassEnhancer
1 parent 06d06d4 commit 8669997

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,14 @@ public Object intercept(Object enhancedConfigInstance, Method beanMethod, Object
252252
// is the same as that of referring to a FactoryBean within XML. See SPR-6602.
253253
if (factoryContainsBean('&'+beanName) && factoryContainsBean(beanName)) {
254254
Object factoryBean = this.beanFactory.getBean('&'+beanName);
255-
if (factoryBean instanceof ScopedProxyFactoryBean) {
256-
// pass through - scoped proxy factory beans are a special case and should not
257-
// be further proxied
258-
} else {
259-
// it is a candidate FactoryBean - go ahead with enhancement
260-
return enhanceFactoryBean(factoryBean.getClass(), beanName);
261-
}
255+
if (factoryBean instanceof ScopedProxyFactoryBean) {
256+
// pass through - scoped proxy factory beans are a special case and should not
257+
// be further proxied
258+
}
259+
else {
260+
// it is a candidate FactoryBean - go ahead with enhancement
261+
return enhanceFactoryBean(factoryBean.getClass(), beanName);
262+
}
262263
}
263264

264265
boolean factoryIsCaller = beanMethod.equals(SimpleInstantiationStrategy.getCurrentlyInvokedFactoryMethod());

0 commit comments

Comments
 (0)