Merge branch '6.2.x'

This commit is contained in:
Sam Brannen
2025-05-11 15:55:07 +02:00

View File

@@ -230,6 +230,16 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
}
@Override
public boolean containsProperty(String name) {
for (PropertySource<?> propertySource : super.source.getPropertySources()) {
if (propertySource.containsProperty(name)) {
return true;
}
}
return false;
}
@Override
public @Nullable Object getProperty(String name) {
for (PropertySource<?> propertySource : super.source.getPropertySources()) {
@@ -241,16 +251,6 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
return null;
}
@Override
public boolean containsProperty(String name) {
for (PropertySource<?> propertySource : super.source.getPropertySources()) {
if (propertySource.containsProperty(name)) {
return true;
}
}
return false;
}
@Override
public String toString() {
return "ConfigurableEnvironmentPropertySource {propertySources=" + super.source.getPropertySources() + "}";
@@ -270,6 +270,11 @@ public class PropertySourcesPlaceholderConfigurer extends PlaceholderConfigurerS
}
@Override
public boolean containsProperty(String name) {
return super.source.containsProperty(name);
}
@Override
public @Nullable Object getProperty(String name) {
return super.source.getProperty(name);