On Mon, 9 Feb 2026 14:45:06 GMT, Roger Riggs <[email protected]> wrote:
>> Zihao Lin has updated the pull request with a new target base due to a merge
>> or a rebase. The incremental webrev excludes the unrelated changes brought
>> in by the merge/rebase. The pull request contains five additional commits
>> since the last revision:
>>
>> - rename to hashCodeOfRange
>> - Merge branch 'master' into dev
>> - Merge branch 'openjdk:master' into dev
>> - Merge branch 'openjdk:master' into dev
>> - 8352171: Arrays.hashCode for sub-range of byte array API addition
>
> src/java.base/share/classes/java/util/Arrays.java line 4455:
>
>> 4453: * @param toIndex the final index of the range to be hashed,
>> exclusive
>> 4454: * @return a content-based hash code for the specified range of
>> the array,
>> 4455: * or {@code 0} if {@code a} is {@code null} and the range
>> is empty
>
> Suggestion:
>
> * or {@code 0} if either {@code a} is {@code null} or the range
> is empty
>
> Clarify that either condition is independently sufficient to return 0.
Thank you
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24128#discussion_r2878780463