Skip to content

Modernize collection#toArray calls#16056

Merged
vsop-479 merged 7 commits into
apache:mainfrom
vsop-479:Modernize_Collection#toArray_calls
May 14, 2026
Merged

Modernize collection#toArray calls#16056
vsop-479 merged 7 commits into
apache:mainfrom
vsop-479:Modernize_Collection#toArray_calls

Conversation

@vsop-479
Copy link
Copy Markdown
Contributor

@vsop-479 vsop-479 commented May 13, 2026

Description

It looks like there were still some old-style Collection#toArray usages remaining after #15681 and #15833, so Copilot and I went ahead and modernized them -- except for the calls in backward-codecs.

I will try to enforce a ban on old-style (or just pre-sized array style) Collection#toArray calls.

@github-actions github-actions Bot added this to the 11.0.0 milestone May 13, 2026
@vsop-479 vsop-479 changed the title Modernize collection#to array calls Modernize collection#toArray calls May 13, 2026
Copy link
Copy Markdown
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this should be backported to 10x as well right?

@vsop-479
Copy link
Copy Markdown
Contributor Author

seems like this should be backported to 10x as well right?

Yes, I will do it.

@vsop-479 vsop-479 merged commit dbf0d14 into apache:main May 14, 2026
14 checks passed
vsop-479 added a commit that referenced this pull request May 14, 2026
@vsop-479 vsop-479 deleted the Modernize_Collection#toArray_calls branch May 14, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment