Merge pull request #15297 from dreis2211

* pr/15297:
  Remove unnecessary cast in LoggingSystemProperties
pull/15385/head
Stephane Nicoll 6 years ago
commit 2f4751a648

@ -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