RFR: 8356036: (fs) FileKey.hashCode and UnixFileStore.hashCode implementations can use Long.hasCode
Brian Burkhalter
bpb at openjdk.org
Thu May 8 17:16:52 UTC 2025
On Thu, 1 May 2025 14:41:09 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> Similar to #24959 and #24971, sun.nio.ch.FileKey/sun.nio.fs.UnixFileKey/sun.nio.fs.UnixFileStore in java.base can also be simplified similarly.
>
> Replace manual bitwise operations in hashCode implementations of sun.nio.ch.FileKey/sun.nio.fs.UnixFileKey/sun.nio.fs.UnixFileStore with Long::hashCode.
Looks all right to me.
-------------
Marked as reviewed by bpb (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24987#pullrequestreview-2825832974
More information about the nio-dev
mailing list