RFR: 8364007: Add no-argument codePointCount method to CharSequence and String [v3]
Tatsunori Uchino
duke at openjdk.org
Tue Jan 27 03:49:37 UTC 2026
On Mon, 26 Jan 2026 22:51:26 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Tatsunori Uchino has updated the pull request incrementally with four additional commits since the last revision:
>>
>> - Update `@bug` in correct file
>> - Add default implementation on codePointCount in CharSequence
>> - Update `@bug` entries in test class doc comments
>> - Discard changes on code whose form is not `str.codePointCount(0, str.length())`
>
> src/java.base/share/classes/java/lang/Character.java line 10012:
>
>> 10010: * @since 26
>> 10011: */
>> 10012: public static int codePointCount(char[] a) {
>
> Regardless of the current usage, the parameter name `a` results in a confusing javadoc line. "a the".
> My preference would be one of `chars`, `seq`, or ....
I found `chars` is too confusing with `char` in JSDoc. I'll chose `seq`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26461#discussion_r2730114109
More information about the core-libs-dev
mailing list