This is a follow-up for https://github.com/openjdk/jdk/pull/4507, looks like there are some cases that were not covered.
Also this is related to https://github.com/openjdk/jdk/pull/3615 ------------- Commit messages: - 8276806: Use Objects.checkFromIndexSize where possible in java.base Changes: https://git.openjdk.java.net/jdk/pull/6297/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6297&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8276806 Stats: 55 lines in 11 files changed: 11 ins; 13 del; 31 mod Patch: https://git.openjdk.java.net/jdk/pull/6297.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/6297/head:pull/6297 PR: https://git.openjdk.java.net/jdk/pull/6297