On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici <vyaz...@openjdk.org> wrote:

> Replace manual bitwise operations in `hashCode` implementations of 
> `java.time` with `Long::hashCode`.

There is a place in java.util.Locale::hashCode that can also be changed
Current version

long bitsWeight = Double.doubleToLongBits(weight);
h = 37*h + (int)(bitsWeight ^ (bitsWeight >>> 32));


Can be changed to

h = 37*h + Long.hashCode(Double.doubleToLongBits(weight));

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

PR Comment: https://git.openjdk.org/jdk/pull/24959#issuecomment-2842775815

Reply via email to