On Tue, 13 Jul 2021 13:04:36 GMT, Attila Szegedi <att...@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

Reply via email to