MethodParameter caches pre-adapted parameter annotations already. Even if there is less overhead involved for method annotations, there is still a benefit in caching those Annotation instances as well, being able to answer get/hasMethodAnnotation(s) from a local array.
The same applies to the hierarchy-searched method annotations in AnnotatedMethod as well.
MethodParametercaches pre-adapted parameter annotations already. Even if there is less overhead involved for method annotations, there is still a benefit in caching thoseAnnotationinstances as well, being able to answerget/hasMethodAnnotation(s)from a local array.The same applies to the hierarchy-searched method annotations in
AnnotatedMethodas well.