RFR: 8268113: Re-use Long.hashCode() where possible [v9]
Сергей Цыпанов
github.com+10835776+stsypanov at openjdk.java.net
Wed Jul 14 12:40:14 UTC 2021
On Tue, 13 Jul 2021 13:04:36 GMT, Attila Szegedi <attila at openjdk.org> wrote:
>> src/java.base/share/classes/java/util/BitSet.java line 1040:
>>
>>> 1038: h ^= words[i] * (i + 1);
>>> 1039:
>>> 1040: return Long.hashCode(h);
>>
>> Here `>>` instead of `>>>` in original code seems to be a typo
>
> It is specified as `>>` in JavaDoc just above the implementation. As the algorithm is part of the public API and thus part of the specification, I don't think you can change it just here in the implementation; you'd need to at least submit a CSR for it.
Good point! I'll then revert this change
-------------
PR: https://git.openjdk.java.net/jdk/pull/4309
More information about the kulla-dev
mailing list