mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-28 19:20:33 +00:00
Don't use removed Character::codePointCount overload
This commit is contained in:
parent
2cf8f448ed
commit
5df93771f2
@ -389,8 +389,7 @@ public class Supplementary {
|
||||
* Test codePointCount(int, int) &
|
||||
* codePointCount()
|
||||
*
|
||||
* This test case assumes that Character.codePointCount() &
|
||||
* Character.codePointCount(CharSequence, int, int) works
|
||||
* This test case assumes that Character.codePointCount(CharSequence, int, int) works
|
||||
* correctly.
|
||||
*/
|
||||
static void test8() {
|
||||
@ -421,7 +420,7 @@ public class Supplementary {
|
||||
}
|
||||
|
||||
int result = str.codePointCount();
|
||||
int expected = Character.codePointCount(str);
|
||||
int expected = Character.codePointCount(str, 0, str.length());
|
||||
check(result != expected, "substring:codePointCount()", result, expected);
|
||||
|
||||
// test exceptions
|
||||
|
||||
@ -218,8 +218,8 @@ public class Supplementary {
|
||||
* Test codePointCount(int, int) & codePointCount()
|
||||
*
|
||||
* This test case assumes that
|
||||
* Character.codePointCount(CharSequence, int, int) &
|
||||
* Character.codePointCount(CharSequence) works correctly.
|
||||
* Character.codePointCount(CharSequence, int, int) works
|
||||
* correctly.
|
||||
*/
|
||||
static void test5() {
|
||||
for (int i = 0; i < input.length; i++) {
|
||||
@ -241,7 +241,7 @@ public class Supplementary {
|
||||
|
||||
|
||||
int result = sb.codePointCount();
|
||||
int expected = Character.codePointCount(sb);
|
||||
int expected = Character.codePointCount(sb, 0, sb.length());
|
||||
check(result != expected, "codePointCount()", result, expected);
|
||||
|
||||
// test exceptions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user