Skip to content

#520: replace new ArrayList<>(0) with new ArrayList<>()#858

Closed
morphqdd wants to merge 1 commit intoobjectionary:masterfrom
morphqdd:520
Closed

#520: replace new ArrayList<>(0) with new ArrayList<>()#858
morphqdd wants to merge 1 commit intoobjectionary:masterfrom
morphqdd:520

Conversation

@morphqdd
Copy link
Copy Markdown
Contributor

@morphqdd morphqdd commented May 1, 2026

Closes #520

Replace new ArrayList<>(0) with new ArrayList<>() across 7 files. The initial capacity argument 0 is redundant — ArrayList defaults to an empty backing array and grows on first element addition either way.

@morphqdd
Copy link
Copy Markdown
Contributor Author

morphqdd commented May 1, 2026

Closing while I clarify the suppression approach in #520.

@morphqdd morphqdd closed this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary Object Creation in LtAsciiOnly.java Needs Replacement

1 participant