[SPR-7960] Trimming profiles for good measure.
This commit is contained in:
parent
24a97805ef
commit
ff2a603f2f
|
|
@ -270,7 +270,7 @@ abstract class ContextLoaderUtils {
|
|||
|
||||
for (String profile : profiles) {
|
||||
if (StringUtils.hasText(profile)) {
|
||||
activeProfiles.add(profile);
|
||||
activeProfiles.add(profile.trim());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ public class ContextLoaderUtilsTests {
|
|||
private static class EmptyProfiles {
|
||||
}
|
||||
|
||||
@ActiveProfiles({ "foo", "bar", "foo", "bar", "baz" })
|
||||
@ActiveProfiles({ "foo", "bar", " foo", "bar ", "baz" })
|
||||
private static class DuplicatedProfiles {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue