Skip to content

Commit b7b43af

Browse files
committed
Polishing
1 parent 262111e commit b7b43af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ private void validateProfiles(Profiles profiles) {
172172
}
173173

174174
private void validateProfile(String profile) {
175-
Assert.notNull(profile, "Profile must not be null");
176-
Assert.hasText(profile, "Profile must not be empty");
175+
Assert.hasText(profile, "Profile must contain text");
177176
Assert.state(!profile.startsWith("-") && !profile.startsWith("_"),
178177
() -> String.format("Invalid profile '%s': must not start with '-' or '_'", profile));
179178
Assert.state(!profile.endsWith("-") && !profile.endsWith("_"),

0 commit comments

Comments
 (0)