Commit d1893690 by Spencer Gibb

polish

parent f143c782
...@@ -64,11 +64,11 @@ public class ConfigurableEnvironmentConfiguration extends AbstractConfiguration ...@@ -64,11 +64,11 @@ public class ConfigurableEnvironmentConfiguration extends AbstractConfiguration
} }
private Map<String, PropertySource<?>> getPropertySources() { private Map<String, PropertySource<?>> getPropertySources() {
Map<String, PropertySource<?>> map = new LinkedHashMap<String, PropertySource<?>>(); Map<String, PropertySource<?>> map = new LinkedHashMap<>();
MutablePropertySources sources = null; MutablePropertySources sources;
if (this.environment != null if (this.environment != null
&& this.environment instanceof ConfigurableEnvironment) { && this.environment instanceof ConfigurableEnvironment) {
sources = ((ConfigurableEnvironment) this.environment).getPropertySources(); sources = this.environment.getPropertySources();
} }
else { else {
sources = new StandardEnvironment().getPropertySources(); sources = new StandardEnvironment().getPropertySources();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment