jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8292350: Use static methods for hashCode/toString primitives

Open turbanoff opened this issue 1 year ago • 5 comments

It's a bit shorter and clearer.


Progress

  • [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8292350: Use static methods for hashCode/toString primitives

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9816/head:pull/9816
$ git checkout pull/9816

Update a local copy of the PR:
$ git checkout pull/9816
$ git pull https://git.openjdk.org/jdk pull/9816/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9816

View PR using the GUI difftool:
$ git pr show -t 9816

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9816.diff

turbanoff avatar Aug 10 '22 08:08 turbanoff

:wave: Welcome back aturbanov! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Aug 10 '22 08:08 bridgekeeper[bot]

@turbanoff The following labels will be automatically applied to this pull request:

  • client
  • core-libs
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

openjdk[bot] avatar Aug 10 '22 08:08 openjdk[bot]

Also, it avoids unnecessary boxing.

ExE-Boss avatar Aug 10 '22 13:08 ExE-Boss

Webrevs

mlbridge[bot] avatar Aug 15 '22 08:08 mlbridge[bot]

@turbanoff This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8292350: Use static methods for hashCode/toString primitives

Reviewed-by: prr, rriggs, amenkov, jpai

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 117 new commits pushed to the master branch:

  • 44532009fff11884aa6f16a997b771c41cb01d2f: 8292628: x86: Improve handling of constants in trigonometric stubs
  • 07c9ba74fa3baebffcc15d3ee6ef941edf6be1a3: 8292686: runtime/cds/appcds/TestWithProfiler.java SIGSEGV in TableStatistics ctr
  • 235151ead89f9102e3a57ba8f88807f180887866: 8292676: Remove two kerberos tests from problem list
  • df5209e70fd92ec6bda4e7356a3ad121732f6c66: 8292683: Remove BadKeyUsageTest.java from Problem List
  • 74d3330e106f2f920bf264356e4f25f8f6c11580: 8292682: Code change of JDK-8282730 not updated to reflect CSR update
  • 57aac2ab6569c18a56e9a36f174bb0bf09955f83: 8290981: Enable CDS for zero builds
  • 6a8a531359295849113aa14fd6cba21c886decf3: 8292564: x86: Remove redundant casts in Assembler usages
  • 7244dd6fab0c516ed76af594593b8378512620c8: 8292267: Clean up synchronizer.hpp
  • 1f3578b79c6355b976d64756da7e4a8af32c2987: 8292446: Make TableRateStatistics optional in CHT
  • 45dec480ef6f1d5509f4afbbf414c69584ac252e: 8292592: JFR test TestNative is not reliable due to low rate of sampling.
  • ... and 107 more: https://git.openjdk.org/jdk/compare/83dc2e3e45a946dd1302efb84baf3afaa9309ba4...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

openjdk[bot] avatar Aug 15 '22 16:08 openjdk[bot]

/integrate

turbanoff avatar Aug 20 '22 10:08 turbanoff

Going to push as commit 37c0a13647e74fd02823a3f621e986f96904b933. Since your change was applied there have been 117 commits pushed to the master branch:

  • 44532009fff11884aa6f16a997b771c41cb01d2f: 8292628: x86: Improve handling of constants in trigonometric stubs
  • 07c9ba74fa3baebffcc15d3ee6ef941edf6be1a3: 8292686: runtime/cds/appcds/TestWithProfiler.java SIGSEGV in TableStatistics ctr
  • 235151ead89f9102e3a57ba8f88807f180887866: 8292676: Remove two kerberos tests from problem list
  • df5209e70fd92ec6bda4e7356a3ad121732f6c66: 8292683: Remove BadKeyUsageTest.java from Problem List
  • 74d3330e106f2f920bf264356e4f25f8f6c11580: 8292682: Code change of JDK-8282730 not updated to reflect CSR update
  • 57aac2ab6569c18a56e9a36f174bb0bf09955f83: 8290981: Enable CDS for zero builds
  • 6a8a531359295849113aa14fd6cba21c886decf3: 8292564: x86: Remove redundant casts in Assembler usages
  • 7244dd6fab0c516ed76af594593b8378512620c8: 8292267: Clean up synchronizer.hpp
  • 1f3578b79c6355b976d64756da7e4a8af32c2987: 8292446: Make TableRateStatistics optional in CHT
  • 45dec480ef6f1d5509f4afbbf414c69584ac252e: 8292592: JFR test TestNative is not reliable due to low rate of sampling.
  • ... and 107 more: https://git.openjdk.org/jdk/compare/83dc2e3e45a946dd1302efb84baf3afaa9309ba4...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Aug 20 '22 10:08 openjdk[bot]

@turbanoff Pushed as commit 37c0a13647e74fd02823a3f621e986f96904b933.

:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk[bot] avatar Aug 20 '22 10:08 openjdk[bot]