Skip to content

Cache method annotations in MethodParameter and AnnotatedMethod #36307

@jhoeller

Description

@jhoeller

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions