Skip to content

Commit 623c395

Browse files
asashourphilwebb
authored andcommitted
Remove redundant cast
See gh-40985
1 parent a18cb37 commit 623c395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -219,7 +219,7 @@ private PropertyResolver getPropertyResolver() {
219219
if (this.environment instanceof ConfigurableEnvironment configurableEnvironment) {
220220
PropertySourcesPropertyResolver resolver = new PropertySourcesPropertyResolver(
221221
configurableEnvironment.getPropertySources());
222-
resolver.setConversionService(((ConfigurableEnvironment) this.environment).getConversionService());
222+
resolver.setConversionService(configurableEnvironment.getConversionService());
223223
resolver.setIgnoreUnresolvableNestedPlaceholders(true);
224224
return resolver;
225225
}

0 commit comments

Comments
 (0)