diff --git a/spring-test/src/main/java/org/springframework/test/context/support/DynamicPropertiesContextCustomizer.java b/spring-test/src/main/java/org/springframework/test/context/support/DynamicPropertiesContextCustomizer.java index fb0ec3f5a8..d7093a066a 100644 --- a/spring-test/src/main/java/org/springframework/test/context/support/DynamicPropertiesContextCustomizer.java +++ b/spring-test/src/main/java/org/springframework/test/context/support/DynamicPropertiesContextCustomizer.java @@ -26,7 +26,6 @@ import java.util.function.Supplier; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.MutablePropertySources; -import org.springframework.lang.Nullable; import org.springframework.test.context.ContextCustomizer; import org.springframework.test.context.DynamicPropertyRegistry; import org.springframework.test.context.DynamicPropertySource; @@ -73,7 +72,6 @@ class DynamicPropertiesContextCustomizer implements ContextCustomizer { sources.addFirst(new DynamicValuesPropertySource(PROPERTY_SOURCE_NAME, buildDynamicPropertiesMap())); } - @Nullable private Map> buildDynamicPropertiesMap() { Map> map = new LinkedHashMap<>(); DynamicPropertyRegistry dynamicPropertyRegistry = (name, valueSupplier) -> {