RFR: 8299982: (bf) Buffer.checkIndex(int, int) should use Objects.checkIndex(int, int)
Vyom Tewari
vtewari at openjdk.org
Wed Jan 25 06:14:05 UTC 2023
On Tue, 24 Jan 2023 22:07:51 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> 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)`.
Looks OK to me.
-------------
Marked as reviewed by vtewari (Committer).
PR: https://git.openjdk.org/jdk/pull/12174
More information about the nio-dev
mailing list