Browse Source

Override containsProperty() in FallbackEnvironmentPropertySource

This commit overrides containsProperty() in
FallbackEnvironmentPropertySource for consistency with the
implementation of ConfigurableEnvironmentPropertySource.

See gh-34861
pull/35405/head
Sam Brannen 8 months ago
parent
commit
065e50a444
  1. 5
      spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java

5
spring-context/src/main/java/org/springframework/context/support/PropertySourcesPlaceholderConfigurer.java

@ -279,6 +279,11 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS @@ -279,6 +279,11 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
return super.source.getProperty(name);
}
@Override
public boolean containsProperty(String name) {
return super.source.containsProperty(name);
}
@Override
public String toString() {
return "FallbackEnvironmentPropertySource {environment=" + super.source + "}";

Loading…
Cancel
Save