Skip to content

Use static final constants for common zero length arrays #23340

Closed

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.

Activity

  1. self-assigned this
    on Jul 23, 2019
  2. added this to the 5.2 RC1 milestone on Jul 23, 2019
  3. added
    in: core
    type: task
    on Jul 23, 2019
  4. added a commit that references this issue on Jul 23, 2019
    116c357
  5. added a commit that references this issue on Sep 17, 2026
    cca32a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions