RFR: 8356036: Use Long::hashCode in sun.nio

Alan Bateman alanb at openjdk.org
Thu May 1 15:56:44 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.

Needs to reviewed by maintainer in this area.

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

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


More information about the nio-dev mailing list