From 623c395c0c9471d15f342f31a385bc699d979e6c Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Tue, 11 Jun 2024 11:56:55 -0700 Subject: [PATCH] Remove redundant cast See gh-40985 --- .../springframework/boot/logging/LoggingSystemProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 17b2e1a3ae..0c306f51a3 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 @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -219,7 +219,7 @@ public class LoggingSystemProperties { if (this.environment instanceof ConfigurableEnvironment configurableEnvironment) { PropertySourcesPropertyResolver resolver = new PropertySourcesPropertyResolver( configurableEnvironment.getPropertySources()); - resolver.setConversionService(((ConfigurableEnvironment) this.environment).getConversionService()); + resolver.setConversionService(configurableEnvironment.getConversionService()); resolver.setIgnoreUnresolvableNestedPlaceholders(true); return resolver; }