Rename parameter names from a to seq

`chars` is too confusing with `char`
This commit is contained in:
Tatsunori Uchino 2026-01-27 12:44:32 +09:00 committed by GitHub
parent 4744ee694e
commit 6d2805d358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10003,12 +10003,12 @@ class Character implements java.io.Serializable, Comparable<Character>, Constabl
* {@return the number of Unicode code points in the {@code char} array}
* Unpaired surrogates count as one code point each.
*
* @param a the {@code char} array
* @throws NullPointerException if {@code a} is null
* @param seq the {@code char} array
* @throws NullPointerException if {@code seq} is null
* @since 27
*/
public static int codePointCount(char[] a) {
return codePointCountImpl(a, 0, a.length);
public static int codePointCount(char[] seq) {
return codePointCountImpl(seq, 0, seq.length);
}
static int codePointCountImpl(char[] a, int offset, int count) {