Skip to content

Commit bba7f34

Browse files
committed
DATAGEODE-306 - Optimize imports.
Format source code in o.s.d.g.support.DeclarableSupport.
1 parent 513afaa commit bba7f34

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/EnableBeanFactoryLocator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package org.springframework.data.gemfire.config.annotation;
1817

1918
import java.lang.annotation.Documented;

spring-data-geode/src/main/java/org/springframework/data/gemfire/support/DeclarableSupport.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
1817
package org.springframework.data.gemfire.support;
1918

2019
import static org.springframework.data.gemfire.support.GemfireBeanFactoryLocator.newBeanFactoryLocator;
@@ -26,8 +25,8 @@
2625
import org.springframework.data.gemfire.PeerRegionFactoryBean;
2726

2827
/**
29-
* Convenience class for Spring-aware GemFire {@link Declarable} components. Provides subclasses with a reference
30-
* to the current Spring {@link BeanFactory} in orde to perform Spring bean lookups or resource loading.
28+
* Convenience class for Spring aware, Apache Geode {@link Declarable} components. Provides subclasses with a reference
29+
* to the current Spring {@link BeanFactory} in order to perform Spring bean lookups or resource loading.
3130
*
3231
* Note, in most cases, the developer should just declare the same components as Spring beans in the Spring container,
3332
* through {@link PeerRegionFactoryBean}, which gives access to the full Spring container capabilities and does not
@@ -103,6 +102,6 @@ protected BeanFactory locateBeanFactory(String beanFactoryKey) {
103102
* @inheritDoc
104103
*/
105104
@Override
106-
public void close() {
107-
}
105+
public void close() { }
106+
108107
}

spring-data-geode/src/main/java/org/springframework/data/gemfire/support/GemfireBeanFactoryLocator.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
1817
package org.springframework.data.gemfire.support;
1918

2019
import static org.springframework.data.gemfire.support.GemfireBeanFactoryLocator.BeanFactoryReference.newBeanFactoryReference;
@@ -28,9 +27,6 @@
2827
import java.util.concurrent.ConcurrentMap;
2928
import java.util.concurrent.atomic.AtomicReference;
3029

31-
import org.slf4j.Logger;
32-
import org.slf4j.LoggerFactory;
33-
3430
import org.springframework.beans.factory.BeanFactory;
3531
import org.springframework.beans.factory.BeanFactoryAware;
3632
import org.springframework.beans.factory.BeanNameAware;
@@ -39,6 +35,9 @@
3935
import org.springframework.util.Assert;
4036
import org.springframework.util.StringUtils;
4137

38+
import org.slf4j.Logger;
39+
import org.slf4j.LoggerFactory;
40+
4241
/**
4342
* The {@link GemfireBeanFactoryLocator} class stores a reference to the Spring
4443
* {@link org.springframework.context.ApplicationContext} / {@link BeanFactory} needed to auto-wire

spring-data-geode/src/main/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
import org.apache.geode.cache.Cache;
2626
import org.apache.geode.cache.Declarable;
2727

28-
import org.slf4j.Logger;
29-
import org.slf4j.LoggerFactory;
30-
3128
import org.springframework.context.ApplicationContext;
3229
import org.springframework.context.ApplicationContextException;
3330
import org.springframework.context.ApplicationListener;
@@ -46,6 +43,9 @@
4643
import org.springframework.util.ObjectUtils;
4744
import org.springframework.util.StringUtils;
4845

46+
import org.slf4j.Logger;
47+
import org.slf4j.LoggerFactory;
48+
4949
/**
5050
* The {@link SpringContextBootstrappingInitializer} class is a GemFire configuration initializer used to bootstrap
5151
* a Spring {@link ApplicationContext} inside a GemFire Server JVM-based process. This enables a GemFire Server

0 commit comments

Comments
 (0)