From b528eb8a7eccd940a1833c6f3e23d27772236086 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Mon, 26 Nov 2018 19:44:01 +0100 Subject: [PATCH] Remove unnecessary cast in LoggingSystemProperties Closes gh-15297 --- .../boot/logging/LoggingSystemProperties.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java index 86d27022e0..dca12f87c7 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/LoggingSystemProperties.java @@ -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;