mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
c840ba9989
Prior to this commit, two @ActiveProfiles declarations with the same profiles but different order resulted in an identical, duplicate ApplicationContext in the context cache in the Spring TestContext Framework. This commit uses a TreeSet to ensure that registered active profiles are both unique and sorted, thereby avoiding cache misses for semantically identical active profiles configuration on different test classes. Closes gh-25973