Browse Source

Remove incorrect @Nullable in DynamicPropertiesContextCustomizer

Closes gh-24796
pull/24805/head
Qimiao Chen 5 years ago committed by GitHub
parent
commit
7db00c9e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-test/src/main/java/org/springframework/test/context/support/DynamicPropertiesContextCustomizer.java

2
spring-test/src/main/java/org/springframework/test/context/support/DynamicPropertiesContextCustomizer.java

@ -26,7 +26,6 @@ import java.util.function.Supplier; @@ -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 { @@ -73,7 +72,6 @@ class DynamicPropertiesContextCustomizer implements ContextCustomizer {
sources.addFirst(new DynamicValuesPropertySource(PROPERTY_SOURCE_NAME, buildDynamicPropertiesMap()));
}
@Nullable
private Map<String, Supplier<Object>> buildDynamicPropertiesMap() {
Map<String, Supplier<Object>> map = new LinkedHashMap<>();
DynamicPropertyRegistry dynamicPropertyRegistry = (name, valueSupplier) -> {

Loading…
Cancel
Save