mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
a199654a62
AnnotationBeanNameGenerator was written before the introduction of the MergedAnnotations API and therefore heavily relies on the AnnotationMetadata abstraction and various helper methods for ASM compatibility. However, recent work on determineBeanNameFromAnnotation() has made it apparent that we should use the MergedAnnotations API directly in AnnotationBeanNameGenerator where feasible in order to avoid unnecessary, repeated iterations/streams over the same annotation metadata. Closes gh-31203