RFR: 8270057: Use Objects.checkFromToIndex for j.u.c.CopyOnWriteArrayList
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
On Thu, 8 Jul 2021 11:51:18 GMT, Yi Yang <yyang@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@github.com (no known OpenJDK username). PR: https://git.openjdk.java.net/jdk/pull/4723
On Thu, 8 Jul 2021 11:51:18 GMT, Yi Yang <yyang@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.
This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.java.net/jdk/pull/4723
participants (3)
-
duke
-
Yi Yang
-
Сергей Цыпанов