Commit d1893690 by Spencer Gibb

polish

parent f143c782
......@@ -64,11 +64,11 @@ public class ConfigurableEnvironmentConfiguration extends AbstractConfiguration
}
private Map<String, PropertySource<?>> getPropertySources() {
Map<String, PropertySource<?>> map = new LinkedHashMap<String, PropertySource<?>>();
MutablePropertySources sources = null;
Map<String, PropertySource<?>> map = new LinkedHashMap<>();
MutablePropertySources sources;
if (this.environment != null
&& this.environment instanceof ConfigurableEnvironment) {
sources = ((ConfigurableEnvironment) this.environment).getPropertySources();
sources = this.environment.getPropertySources();
}
else {
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