Edit Javadoc in IntegrationTestsSupport.

Replace use of Java's @NotNull annotation with Spring's @NonNull annotation.
This commit is contained in:
John Blum
2022-10-17 12:21:20 -07:00
parent 819dc70acb
commit 10a84f1ef8

View File

@@ -39,8 +39,6 @@ import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
import com.sun.istack.NotNull;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
@@ -83,27 +81,29 @@ import org.springframework.util.ReflectionUtils;
import org.springframework.util.StringUtils;
/**
* The {@link IntegrationTestsSupport} class is an abstract base class supporting integration tests
* with either Apache Geode or VMware GemFire in a Spring context.
* Abstract base class supporting integration tests with either Apache Geode or VMware Tanzu GemFire
* in a Spring context.
*
* @author John Blum
* @see java.io.File
* @see java.time.LocalDateTime
* @see java.util.concurrent.TimeUnit
* @see java.util.function.Function
* @see java.util.function.Predicate
* @see org.apache.geode.DataSerializer
* @see org.apache.geode.cache.GemFireCache
* @see org.apache.geode.cache.client.ClientCache
* @see org.apache.geode.cache.execute.FunctionService
* @see org.apache.geode.distributed.Locator
* @see org.apache.geode.internal.cache.CacheLifecycleListener
* @see org.apache.geode.internal.cache.GemFireCacheImpl
* @see org.springframework.context.ApplicationContext
* @see org.springframework.context.ApplicationEvent
* @see org.springframework.context.ApplicationEventPublisher
* @see org.springframework.context.ApplicationEventPublisherAware
* @see org.springframework.context.ConfigurableApplicationContext
* @see org.springframework.core.env.ConfigurableEnvironment
* @see org.springframework.core.env.Environment
* @see org.springframework.core.env.PropertySource
* @see org.springframework.core.env.StandardEnvironment
* @see org.springframework.data.gemfire.support.GemfireBeanFactoryLocator
* @see org.springframework.data.gemfire.tests.config.TestProperties
* @see org.springframework.data.gemfire.tests.mock.GemFireMockObjectsSupport
* @since 1.0.0
*/
@@ -554,12 +554,12 @@ public abstract class IntegrationTestsSupport {
return qualifiedDirectoryName;
}
private static @NotNull String asTimestampedDirectoryName(@NonNull Class<?> type) {
private static @NonNull String asTimestampedDirectoryName(@NonNull Class<?> type) {
return String.format(DIRECTORY_NAME_FORMAT, asQualifiedDirectoryName(type),
LocalDateTime.now().format(DateTimeFormatter.ofPattern(DATE_TIME_PATTERN)));
}
private static @NotNull String asUniqueDirectoryName(@NonNull Class<?> type) {
private static @NonNull String asUniqueDirectoryName(@NonNull Class<?> type) {
return String.format(DIRECTORY_NAME_FORMAT, asTimestampedDirectoryName(type), UUID.randomUUID());
}