RFR: 8364007: Add no-argument codePointCount method to CharSequence and String [v7]
Naoto Sato
naoto at openjdk.org
Wed Jan 28 18:05:50 UTC 2026
On Tue, 27 Jan 2026 13:53:37 GMT, Tatsunori Uchino <duke at openjdk.org> wrote:
> Do we need to remove or preserve `Character.codePointCount(char[])`? I think it's inconsistent to have codePointCount(char[]) and codePointCount(CharSequence, int, int) but not codePointCount(CharSequence). We may need to update the CSR.
I would rather focus on addressing the use case, not pursuing the consistency. I would not introduce any methods on Character, and just have CharSequence.codePointCount() (and its implementations) for this PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26461#issuecomment-3812935919
More information about the core-libs-dev
mailing list