Polishing

This commit is contained in:
Sam Brannen
2019-12-13 16:30:03 +01:00
parent 47b18e5ea9
commit 17edbec035

View File

@@ -469,9 +469,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
if (!ObjectUtils.isEmpty(parentDefaultProfiles)) {
synchronized (this.defaultProfiles) {
this.defaultProfiles.remove(RESERVED_DEFAULT_PROFILE_NAME);
for (String profile : parentDefaultProfiles) {
this.defaultProfiles.add(profile);
}
Collections.addAll(this.defaultProfiles, parentDefaultProfiles);
}
}
}