mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Remove redundant cast
See gh-40985
This commit is contained in:
parent
a18cb37657
commit
623c395c0c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user