From bb63670d653e54ea43135f4b3b388d49436fbb7d Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 17 Jun 2020 19:19:59 -0700 Subject: [PATCH] Format source code. Edit Javadoc. --- .../GemFireGarbageCollectorConfiguration.java | 16 ++++++++-------- .../GemFireMockObjectsConfiguration.java | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/integration/annotation/GemFireGarbageCollectorConfiguration.java b/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/integration/annotation/GemFireGarbageCollectorConfiguration.java index 34d469f..a1e8c99 100644 --- a/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/integration/annotation/GemFireGarbageCollectorConfiguration.java +++ b/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/integration/annotation/GemFireGarbageCollectorConfiguration.java @@ -31,8 +31,8 @@ import org.springframework.lang.NonNull; import org.springframework.test.context.event.AfterTestClassEvent; /** - * Spring {@link Configuration} class used to register beans that collect garbage irresponsibly left behind by - * Apache Geode when its processes shutdown, even in a test context. + * Spring {@link Configuration} class used to register beans that collect garbage and other resources irresponsibly + * left behind by Apache Geode when its processes shutdown, even in a test context. * * @author John Blum * @see java.lang.annotation.Annotation @@ -43,7 +43,7 @@ import org.springframework.test.context.event.AfterTestClassEvent; * @see org.springframework.context.annotation.ImportAware * @see org.springframework.core.type.AnnotationMetadata * @see org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport - * @see GemFireGarbageCollectorApplicationListener + * @see org.springframework.data.gemfire.tests.integration.context.event.GemFireGarbageCollectorApplicationListener * @since 0.0.17 */ @Configuration @@ -58,11 +58,6 @@ public class GemFireGarbageCollectorConfiguration extends AbstractAnnotationConf private Class[] gemfireGarbageCollectorEventTypes = new Class[] { AfterTestClassEvent.class }; - @Override - protected Class getAnnotationType() { - return EnableGemFireGarbageCollector.class; - } - @Override @SuppressWarnings("unchecked") public void setImportMetadata(@NonNull AnnotationMetadata importMetadata) { @@ -80,6 +75,11 @@ public class GemFireGarbageCollectorConfiguration extends AbstractAnnotationConf }); } + @Override + protected Class getAnnotationType() { + return EnableGemFireGarbageCollector.class; + } + @SuppressWarnings("unchecked") protected @NonNull Class[] getGemFireGarbageCollectorEventTypes() { return ArrayUtils.nullSafeArray(this.gemfireGarbageCollectorEventTypes, Class.class); diff --git a/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/mock/annotation/GemFireMockObjectsConfiguration.java b/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/mock/annotation/GemFireMockObjectsConfiguration.java index 3348c44..539814e 100644 --- a/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/mock/annotation/GemFireMockObjectsConfiguration.java +++ b/spring-data-geode-test/src/main/java/org/springframework/data/gemfire/tests/mock/annotation/GemFireMockObjectsConfiguration.java @@ -82,7 +82,7 @@ public class GemFireMockObjectsConfiguration extends AbstractAnnotationConfigSup return EnableGemFireMockObjects.class; } - protected Class[] getConfiguredDestroyEventTypes() { + protected @NonNull Class[] getConfiguredDestroyEventTypes() { return this.destroyEventTypes; }