Override containsProperty() in FallbackEnvironmentPropertySource

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

See gh-34861
This commit is contained in:
Sam Brannen
2025-05-11 15:44:41 +02:00
parent 7135527765
commit 065e50a444

View File

@@ -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 + "}";