Remove incorrect @Nullable in DynamicPropertiesContextCustomizer

Closes gh-24796
This commit is contained in:
Qimiao Chen
2020-03-28 22:29:01 +08:00
committed by GitHub
parent 5d6139eb7a
commit 7db00c9e22

View File

@@ -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<String, Supplier<Object>> buildDynamicPropertiesMap() {
Map<String, Supplier<Object>> map = new LinkedHashMap<>();
DynamicPropertyRegistry dynamicPropertyRegistry = (name, valueSupplier) -> {