Skip to content

Commit 065e50a

Browse files
committed
Override containsProperty() in FallbackEnvironmentPropertySource
This commit overrides containsProperty() in FallbackEnvironmentPropertySource for consistency with the implementation of ConfigurableEnvironmentPropertySource. See gh-34861
1 parent 7135527 commit 065e50a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ public Object getProperty(String name) {
279279
return super.source.getProperty(name);
280280
}
281281

282+
@Override
283+
public boolean containsProperty(String name) {
284+
return super.source.containsProperty(name);
285+
}
286+
282287
@Override
283288
public String toString() {
284289
return "FallbackEnvironmentPropertySource {environment=" + super.source + "}";

0 commit comments

Comments
 (0)