mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-06 23:19:03 +00:00
Polishing
This commit is contained in:
+1
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user