Skip to content

Commit 14791f0

Browse files
committed
Fix typos
Closes gh-47358
1 parent 30d3889 commit 14791f0

File tree

2 files changed

+2
-2
lines changed
  • spring-boot-project/spring-boot/src

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private Collection<String> getProfiles(Environment environment, Binder binder, P
104104
? Collections.emptySet()
105105
: StringUtils.commaDelimitedListToSet(StringUtils.trimAllWhitespace(environmentPropertyValue));
106106
validator.validate(environmentPropertyProfiles,
107-
() -> "Invalid profile property value found in Envronment under '%s'".formatted(type.getName()));
107+
() -> "Invalid profile property value found in Environment under '%s'".formatted(type.getName()));
108108
Set<String> environmentProfiles = new LinkedHashSet<>(Arrays.asList(type.get(environment)));
109109
BindResult<Set<String>> boundProfiles = binder.bind(type.getName(), STRING_SET, validator);
110110
if (hasProgrammaticallySetProfiles(type, environmentPropertyValue, environmentPropertyProfiles,

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ProfilesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ void invalidNameInEnvironment() {
453453
environment.setProperty("spring.profiles.active", "fa!l");
454454
Binder binder = new Binder();
455455
assertThatIllegalStateException().isThrownBy(() -> new Profiles(environment, binder, null))
456-
.withMessage("Invalid profile property value found in Envronment under 'spring.profiles.active'");
456+
.withMessage("Invalid profile property value found in Environment under 'spring.profiles.active'");
457457
}
458458

459459
@Test

0 commit comments

Comments
 (0)