On Sun, 1 Feb 2026 06:28:49 GMT, Tatsunori Uchino <[email protected]> wrote:

>> Adds `codePointCount()` overloads to `String`, `Character`, 
>> `(Abstract)StringBuilder`, and `StringBuffer` to make it possible to 
>> conveniently retrieve the length of a string as code points without extra 
>> boundary checks.
>> 
>> 
>> if (superTremendouslyLongExpressionYieldingAString().codePointCount() > 
>> limit) {
>>     throw new Exception("exceeding length");
>> }
>> 
>> 
>> Is a CSR required to this change?
>
> Tatsunori Uchino has updated the pull request incrementally with two 
> additional commits since the last revision:
> 
>  - Update JavaDoc
>  - Fix broken test methods calls

src/java.base/share/classes/java/nio/X-Buffer.java.template line 2062:

> 2060:     /**
> 2061:      * {@return the number of Unicode code points in this character 
> buffer}
> 2062:      * <p>The number of Unicode code points in this character buffer is

Keep it consistent with the existing methods if you can, meaning put a blank 
after before the second paragraph, space after the `<p>` and drop the trailing 
`</p>`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26461#discussion_r2750747902

Reply via email to