Skip to content

Use shared InjectionMetadata instance for beans skipped by AutowiredAnnotationBeanPostProcessor #22570

Closed
@philwebb

Description

@philwebb

Currently AutowiredAnnotationBeanPostProcessor.buildAutowiringMetadata creates a new InjectionMetadata instance with an empty collection for beans that have no relevant annotations. It looks like the clazz parameter never escapes from the class so we could probably create a special shared InjectionMetadata.EMPTY instance to return in such cases.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions