Browse Source

Remove unnecessary cast in LoggingSystemProperties

Closes gh-15297
pull/15385/head
dreis2211 7 years ago committed by Stephane Nicoll
parent
commit
b528eb8a7e
  1. 5
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java

5
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java

@ -117,10 +117,9 @@ public class LoggingSystemProperties { @@ -117,10 +117,9 @@ public class LoggingSystemProperties {
private PropertyResolver getPropertyResolver() {
if (this.environment instanceof ConfigurableEnvironment) {
PropertyResolver resolver = new PropertySourcesPropertyResolver(
PropertySourcesPropertyResolver resolver = new PropertySourcesPropertyResolver(
((ConfigurableEnvironment) this.environment).getPropertySources());
((PropertySourcesPropertyResolver) resolver)
.setIgnoreUnresolvableNestedPlaceholders(true);
resolver.setIgnoreUnresolvableNestedPlaceholders(true);
return resolver;
}
return this.environment;

Loading…
Cancel
Save