Discard changes on code whose form is not str.codePointCount(0, str.length())

This commit is contained in:
Tatsunori Uchino 2025-07-26 18:03:16 +09:00
parent 63eb4a7d29
commit 8d4840b671

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1906,7 +1906,7 @@ public final class NormalizerImpl {
pStart = 0;
p = norm.toCharArray();
length = p.length;
int cpNum = norm.codePointCount();
int cpNum = norm.codePointCount(0, length);
cc= UCharacter.getCombiningClass(norm.codePointAt(0));
trailCC= UCharacter.getCombiningClass(norm.codePointAt(cpNum-1));
if (length == 1) {