Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize on Array copyOf #9162

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

belugabehr
Copy link
Contributor

Code already uses instances of copyOf, make it the standard.

https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html

Copy link
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

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

Thanks

@elharo elharo merged commit 201c1fc into protocolbuffers:master Oct 29, 2021
acozzette added a commit to acozzette/protobuf that referenced this pull request Jan 11, 2022
This reverts commit 935d099 from PR protocolbuffers#9162.

While the original commit was a nice simplification, I learned from
another Googler that there is unfortunately a performance cost to this
(or at least there was last time this change was attempted). Even if it
turns out to be fast on modern Java runtimes, we still care about the
performance on old Android devices.
acozzette added a commit that referenced this pull request Jan 11, 2022
This reverts commit 935d099 from PR #9162.

While the original commit was a nice simplification, I learned from
another Googler that there is unfortunately a performance cost to this
(or at least there was last time this change was attempted). Even if it
turns out to be fast on modern Java runtimes, we still care about the
performance on old Android devices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants