Skip to content

Use static final constants for common zero length arrays #23340

Closed
@philwebb

Description

@philwebb

There are a few places (most notably in *Utils classes) where we often return zero length arrays. It might be beneficial if instead of returning a new instance for each of these calls, we instead use a shared static final constant.

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