Skip to content

MergedAnnotationCollectors.toAnnotationSet() should not create intermediate ArrayList #26031

@sbrannen

Description

@sbrannen

MergedAnnotationCollectors.toAnnotationSet() currently creates an intermediate ArrayList for storing the results prior to creating a LinkedHashSet in the finishing step. The creation of the intermediate list is unnecessary and can be avoided.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions