RFR: 8268698: Use Objects.check{Index, FromToIndex, FromIndexSize} where possible

Yi Yang yyang at openjdk.java.net
Wed Jun 16 08:25:51 UTC 2021


After JDK-8265518, it's possible to replace all variants of checkIndex by Objects.checkIndex/Objects.checkFromToIndex/Objects.checkFromIndexSize in the whole JDK codebase.

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

Commit messages:
 - use checkIndex globally

Changes: https://git.openjdk.java.net/jdk/pull/4507/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4507&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8268698
  Stats: 206 lines in 34 files changed: 31 ins; 111 del; 64 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4507.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4507/head:pull/4507

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



More information about the security-dev mailing list