mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-10 09:09:04 +00:00
Prior to this commit, ClassFileAnnotationDelegate created MergedAnnotations from a HashSet, which resulted in a non-deterministic iteration order and lost the original source declaration order of the annotations. To address that, this commit revises ClassFileAnnotationDelegate to create MergedAnnotations from a List. In addition, this commit updates all related tests to use the containsExactly() assertion instead of containsExactlyInAnyOrder() to ensure we consistently adhere to the "source declaration order" requirement. Closes gh-36598