mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
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