RFR: 8299982: (bf) Buffer.checkIndex(int, int) should use Objects.checkIndex(int, int) [v2]

Brian Burkhalter bpb at openjdk.org
Wed Jan 25 20:26:18 UTC 2023


> Replace explicit check of indexes in `Buffer::checkIndex(int,int)` with a call to `Objects::checkIndex(int,int)` in order to improve the throughput of other methods which invoke `Buffer::checkIndex(int,int)`.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8299982: Change Objects::checkIndex to Preconditions::checkIndex; improve exception message

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12174/files
  - new: https://git.openjdk.org/jdk/pull/12174/files/c25837f8..24d21cd2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12174&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12174&range=00-01

  Stats: 9 lines in 1 file changed: 8 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/12174.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12174/head:pull/12174

PR: https://git.openjdk.org/jdk/pull/12174


More information about the nio-dev mailing list