Format source code.
Edit Javadoc.
This commit is contained in:
@@ -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<? extends ApplicationEvent>[] gemfireGarbageCollectorEventTypes =
|
||||
new Class[] { AfterTestClassEvent.class };
|
||||
|
||||
@Override
|
||||
protected Class<? extends Annotation> 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<? extends Annotation> getAnnotationType() {
|
||||
return EnableGemFireGarbageCollector.class;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
protected @NonNull Class<? extends ApplicationEvent>[] getGemFireGarbageCollectorEventTypes() {
|
||||
return ArrayUtils.nullSafeArray(this.gemfireGarbageCollectorEventTypes, Class.class);
|
||||
|
||||
@@ -82,7 +82,7 @@ public class GemFireMockObjectsConfiguration extends AbstractAnnotationConfigSup
|
||||
return EnableGemFireMockObjects.class;
|
||||
}
|
||||
|
||||
protected Class<? extends ApplicationEvent>[] getConfiguredDestroyEventTypes() {
|
||||
protected @NonNull Class<? extends ApplicationEvent>[] getConfiguredDestroyEventTypes() {
|
||||
return this.destroyEventTypes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user