RFR: 8356036: (fs) FileKey.hashCode and UnixFileStore.hashCode implementations can use Long.hasCode

Brian Burkhalter bpb at openjdk.org
Thu May 8 16:52:57 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.

I corrected the typo in the summary of the issue so the title of this PR will need to be changed to match.

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

PR Comment: https://git.openjdk.org/jdk/pull/24987#issuecomment-2863694487


More information about the nio-dev mailing list