RFR: 8270057: Use Objects.checkFromToIndex for j.u.c.CopyOnWriteArrayList
Yi Yang
yyang at openjdk.java.net
Thu Jul 8 12:00:14 UTC 2021
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.
-------------
Commit messages:
- replace
Changes: https://git.openjdk.java.net/jdk/pull/4723/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4723&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8270057
Stats: 6 lines in 1 file changed: 0 ins; 3 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/4723.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4723/head:pull/4723
PR: https://git.openjdk.java.net/jdk/pull/4723
More information about the core-libs-dev
mailing list