RFR: 8297561: Redundant index check in String.offsetByCodePoints() [v4]
Claes Redestad
redestad at openjdk.org
Thu Dec 1 09:28:58 UTC 2022
On Thu, 1 Dec 2022 08:14:07 GMT, Sergey Tsypanov <stsypanov at openjdk.org> wrote:
>> `String.offsetByCodePoints()` delegates to `Character.offsetByCodePoints()` which in turn specifies the same exception thrown under the same conditions and the implementation does exactly the same checks. This means we can remove the check from `String.offsetByCodePoints()` and rely on the one of `Character.offsetByCodePoints()`.
>
> Sergey Tsypanov has updated the pull request incrementally with two additional commits since the last revision:
>
> - 8297561: Minor clean-up
> - 8297561: Fix copyright year
Marked as reviewed by redestad (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/11350
More information about the core-libs-dev
mailing list