Browse Source

polishing developer documentation

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4574 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/merge
Sam Brannen 15 years ago
parent
commit
69b3be67c4
  1. 6
      org.springframework.test/src/main/java/org/springframework/test/context/MergedContextConfiguration.java

6
org.springframework.test/src/main/java/org/springframework/test/context/MergedContextConfiguration.java

@ -60,9 +60,9 @@ public class MergedContextConfiguration { @@ -60,9 +60,9 @@ public class MergedContextConfiguration {
return new String[] {};
}
// Active profiles must be unique and sorted due to cache key generation
// in TestContext. Specifically, profile sets {foo,bar} and {bar,foo}
// must both result in the same array (e.g., [bar,foo]).
// Active profiles must be unique and sorted in order to support proper
// cache key generation. Specifically, profile sets {foo,bar} and
// {bar,foo} must both result in the same array (e.g., [bar,foo]).
SortedSet<String> sortedProfilesSet = new TreeSet<String>(Arrays.asList(activeProfiles));
return StringUtils.toStringArray(sortedProfilesSet);
}

Loading…
Cancel
Save