RFR: 8323710: (fc) FileChannel.lock creates a FileKey with a poor hashCode after JDK-8321429 (win)

Alan Bateman alanb at openjdk.org
Tue Jan 16 21:27:50 UTC 2024


On Tue, 16 Jan 2024 20:56:21 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Dispense with the shift operators in calculating the hash code of `FileKey`.

Looks okay for now. At some point I think we should change the way that a FileKey is initialized so they can be final fields.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17452#pullrequestreview-1825134245


More information about the nio-dev mailing list