Use MergedAnnotations
API directly in AnnotationBeanNameGenerator
where possible
#31203
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
AnnotationBeanNameGenerator
was written before the introduction of theMergedAnnotations
API and therefore heavily relies on theAnnotationMetadata
abstraction and various helper methods for ASM compatibility.However, recent work on
determineBeanNameFromAnnotation(AnnotatedBeanDefinition)
has made it apparent that we should use theMergedAnnotations
API directly inAnnotationBeanNameGenerator
where possible in order to avoid unnecessary, repeated iterations/streams over the same annotation metadata.The text was updated successfully, but these errors were encountered: