RFR: 8356605: JRSUIControl.hashCode and JRSUIState.hashCode can use Long.hasCode

Shaojin Wen swen at openjdk.org
Fri May 9 08:21:23 UTC 2025


Similar to #24959 and #24971 and #24987, apple.laf.JRSUIControl and apple.laf.JRSUIState in java.desktop can also be simplified similarly.

Replace manual bitwise operations in hashCode implementations of JRSUIControl/JRSUIState with Long::hashCode.

-------------

Commit messages:
 - Use Double::hashCode & Long::hashCode

Changes: https://git.openjdk.org/jdk/pull/24989/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24989&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8356605
  Stats: 5 lines in 2 files changed: 0 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/24989.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24989/head:pull/24989

PR: https://git.openjdk.org/jdk/pull/24989


More information about the client-libs-dev mailing list