Re: RFR: 8297561: Redundant index check in String.offsetByCodePoints() [v4]

2022-12-01 Thread Roger Riggs
On Thu, 1 Dec 2022 08:14:07 GMT, Sergey Tsypanov 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 >>

Re: RFR: 8297561: Redundant index check in String.offsetByCodePoints() [v4]

2022-12-01 Thread Claes Redestad
On Thu, 1 Dec 2022 08:14:07 GMT, Sergey Tsypanov 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 >>

Re: RFR: 8297561: Redundant index check in String.offsetByCodePoints() [v4]

2022-12-01 Thread Sergey Tsypanov
> `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