RFR: 8270057: Use Objects.checkFromToIndex for j.u.c.CopyOnWriteArrayList

Сергей Цыпанов github.com+10835776+stsypanov at openjdk.java.net
Tue Aug 17 07:32:29 UTC 2021


On Thu, 8 Jul 2021 11:51:18 GMT, Yi Yang <yyang at openjdk.org> wrote:

> After JDK-8265518(#3615), it's possible to replace all variants of checkIndex by Objects.checkIndex/Objects.checkFromToIndex/Objects.checkFromIndexSize in the whole JDK codebase.
> 
> As Mandy suggested, I create this PR for changes involving  JUC changes.

Very simple change, LGTM.

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

Marked as reviewed by stsypanov at github.com (no known OpenJDK username).

PR: https://git.openjdk.java.net/jdk/pull/4723


More information about the core-libs-dev mailing list