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

Yi Yang yyang at openjdk.java.net
Wed Jul 7 02:18:12 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.

Yi Yang has updated the pull request incrementally with four additional commits since the last revision:

 - restore code format
 - restore code format
 - restore code format
 - restore code format

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4507/files
  - new: https://git.openjdk.java.net/jdk/pull/4507/files/ab1b509d..f43ffc3a

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4507&range=08
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4507&range=07-08

  Stats: 58 lines in 2 files changed: 0 ins; 10 del; 48 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