Integrated: 8356036: (fs) FileKey.hashCode and UnixFileStore.hashCode implementations can use Long.hashCode
Shaojin Wen
swen at openjdk.org
Fri May 9 16:45:56 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.
This pull request has now been integrated.
Changeset: 2661f62c
Author: Shaojin Wen <swen at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2661f62ca23f5589538d4ad50078d1f715ade342
Stats: 5 lines in 3 files changed: 0 ins; 2 del; 3 mod
8356036: (fs) FileKey.hashCode and UnixFileStore.hashCode implementations can use Long.hashCode
Reviewed-by: liach, bpb
-------------
PR: https://git.openjdk.org/jdk/pull/24987
More information about the nio-dev
mailing list