From 14791f05932dffd61b319bdaa2e464737c798127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 30 Sep 2025 07:49:16 +0200 Subject: [PATCH] Fix typos Closes gh-47358 --- .../java/org/springframework/boot/context/config/Profiles.java | 2 +- .../org/springframework/boot/context/config/ProfilesTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java index eb8dd9f31b9..a171143f680 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java @@ -104,7 +104,7 @@ public class Profiles implements Iterable { ? Collections.emptySet() : StringUtils.commaDelimitedListToSet(StringUtils.trimAllWhitespace(environmentPropertyValue)); validator.validate(environmentPropertyProfiles, - () -> "Invalid profile property value found in Envronment under '%s'".formatted(type.getName())); + () -> "Invalid profile property value found in Environment under '%s'".formatted(type.getName())); Set environmentProfiles = new LinkedHashSet<>(Arrays.asList(type.get(environment))); BindResult> boundProfiles = binder.bind(type.getName(), STRING_SET, validator); if (hasProgrammaticallySetProfiles(type, environmentPropertyValue, environmentPropertyProfiles, diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ProfilesTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ProfilesTests.java index f7d2900b8d8..40d213b26b3 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ProfilesTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ProfilesTests.java @@ -453,7 +453,7 @@ class ProfilesTests { environment.setProperty("spring.profiles.active", "fa!l"); Binder binder = new Binder(); assertThatIllegalStateException().isThrownBy(() -> new Profiles(environment, binder, null)) - .withMessage("Invalid profile property value found in Envronment under 'spring.profiles.active'"); + .withMessage("Invalid profile property value found in Environment under 'spring.profiles.active'"); } @Test