From 866999764de3b9144648bbd325f3d99d67634692 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Sat, 10 Dec 2011 19:31:18 +0000 Subject: [PATCH] Polish whitespace in ConfigurationClassEnhancer --- .../annotation/ConfigurationClassEnhancer.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java b/org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java index 3216a9c5c5..d2b2ed6d4d 100644 --- a/org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java +++ b/org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java @@ -252,13 +252,14 @@ class ConfigurationClassEnhancer { // is the same as that of referring to a FactoryBean within XML. See SPR-6602. if (factoryContainsBean('&'+beanName) && factoryContainsBean(beanName)) { Object factoryBean = this.beanFactory.getBean('&'+beanName); - if (factoryBean instanceof ScopedProxyFactoryBean) { - // pass through - scoped proxy factory beans are a special case and should not - // be further proxied - } else { - // it is a candidate FactoryBean - go ahead with enhancement - return enhanceFactoryBean(factoryBean.getClass(), beanName); - } + if (factoryBean instanceof ScopedProxyFactoryBean) { + // pass through - scoped proxy factory beans are a special case and should not + // be further proxied + } + else { + // it is a candidate FactoryBean - go ahead with enhancement + return enhanceFactoryBean(factoryBean.getClass(), beanName); + } } boolean factoryIsCaller = beanMethod.equals(SimpleInstantiationStrategy.getCurrentlyInvokedFactoryMethod());