Browse Source

Restore hasProgrammaticallySetProfiles code

Restore code lost on merge.

See gh-26580
pull/26586/head
Phillip Webb 5 years ago
parent
commit
2bbad94910
  1. 3
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java

3
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java

@ -114,6 +114,9 @@ public class Profiles implements Iterable<String> { @@ -114,6 +114,9 @@ public class Profiles implements Iterable<String> {
if (!StringUtils.hasLength(environmentPropertyValue)) {
return !type.getDefaultValue().equals(environmentProfiles);
}
if (type.getDefaultValue().equals(environmentProfiles)) {
return false;
}
return !environmentPropertyProfiles.equals(environmentProfiles);
}

Loading…
Cancel
Save