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

cleanup Byte & Short object constructors #3821

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

BradWalker
Copy link
Member

It is more efficient to allow the VM to manage the auto-boxing of certain primitives than it is to invoke the
object constructor.

This change cleans up Byte & Short for this.

Tests have been left untouched because we expressly want to handle the boxing in each particular test.


^Add meaningful description above

By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -

  • are all your own work, and you have the right to contribute them.
  • are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).

Please make sure (eg. git log) that all commits have a valid name and email address for you in the Author field.

If you're a first time contributor, see the Contributing guidelines for more information.

@BradWalker BradWalker self-assigned this Mar 20, 2022
@BradWalker BradWalker added Code cleanup Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) labels Mar 20, 2022
@BradWalker BradWalker added this to the NB13 milestone Mar 20, 2022
…tain primitives than it is to invoke the

object constructor.

This change cleans up Byte & Short for this.

Tests have been left untouched because we expressly want to do handle the boxing in each particular test.
@BradWalker BradWalker force-pushed the cleanup_byte-short_primitives branch from cee40a0 to 24dfe07 Compare March 20, 2022 13:30
@mbien
Copy link
Member

mbien commented Mar 20, 2022

@BradWalker you probably mean NB14 as milestone :) I fixed it on the other PR already.

@BradWalker BradWalker modified the milestones: NB13, NB14 Mar 21, 2022
@BradWalker
Copy link
Member Author

@BradWalker you probably mean NB14 as milestone :) I fixed it on the other PR already.

Hey @mbien , does that mean you intend to integrate the change or should I?

@mbien
Copy link
Member

mbien commented Mar 21, 2022

@BradWalker you probably mean NB14 as milestone :) I fixed it on the other PR already.

Hey @mbien , does that mean you intend to integrate the change or should I?

NB13 is already released. I only wanted to say that we shouldn't put NB13 as milestones on PRs anymore. Changes look good on first glance though.

@BradWalker BradWalker merged commit ce03e1d into apache:master Mar 21, 2022
@BradWalker BradWalker deleted the cleanup_byte-short_primitives branch March 21, 2022 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code cleanup Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants