RFR: 8364007: Add no-argument codePointCount method to CharSequence and String [v3]

Chen Liang liach at openjdk.org
Thu Jan 29 00:54:11 UTC 2026


On Wed, 28 Jan 2026 23:13:04 GMT, Tatsunori Uchino <duke at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/AbstractStringBuilder.java line 539:
>> 
>>> 537:      * @return the number of Unicode code points in this String
>>> 538:      * @since  26
>>> 539:      */
>> 
>> Suggestion:
>> 
>>     /**
>>      * @since 27
>>      */
>
> Why did you strip the JSDoc?

By default the docs will be inherited from `CharSequence` except the `@throws` tags.

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

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


More information about the core-libs-dev mailing list