Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v3]

2021-08-02 Thread Claes Redestad
On Thu, 15 Jul 2021 11:56:31 GMT, Сергей Цыпанов wrote: >> `AbstractStringBuilder.charAt(int)` does bounds check before calling >> `charAt()` (for non-latin Strings): >> >> @Override >> public char charAt(int index) { >> checkIndex(index, count); >> if (isLatin1()) { >> return

Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v3]

2021-07-15 Thread Сергей Цыпанов
> `AbstractStringBuilder.charAt(int)` does bounds check before calling > `charAt()` (for non-latin Strings): > > @Override > public char charAt(int index) { > checkIndex(index, count); > if (isLatin1()) { > return (char)(value[index] & 0xff); > } > return