File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5459,8 +5459,11 @@ public static boolean isLowerCase(char ch) {
5459
5459
* @since 1.5
5460
5460
*/
5461
5461
public static boolean isLowerCase (int codePoint ) {
5462
- return getType (codePoint ) == Character .LOWERCASE_LETTER ||
5463
- CharacterData .of (codePoint ).isOtherLowercase (codePoint );
5462
+ return getType (codePoint ) == Character .LOWERCASE_LETTER ;
5463
+ // This code has been simplified in the upstream JDK repository
5464
+ // at https://github.com/openjdk/jdk/pull/2846/files. The change
5465
+ // below is to bring the code at parity with openJDK.
5466
+ // || CharacterData.of(codePoint).isOtherLowercase(codePoint);
5464
5467
}
5465
5468
5466
5469
/**
@@ -5525,8 +5528,11 @@ public static boolean isUpperCase(char ch) {
5525
5528
* @since 1.5
5526
5529
*/
5527
5530
public static boolean isUpperCase (int codePoint ) {
5528
- return getType (codePoint ) == Character .UPPERCASE_LETTER ||
5529
- CharacterData .of (codePoint ).isOtherUppercase (codePoint );
5531
+ return getType (codePoint ) == Character .UPPERCASE_LETTER ;
5532
+ // // This code has been simplified in the upstream JDK repository
5533
+ // at https://github.com/openjdk/jdk/pull/2846/files. The change
5534
+ // below is to bring the code at parity with openJDK.
5535
+ // || CharacterData.of(codePoint).isOtherUppercase(codePoint);
5530
5536
}
5531
5537
5532
5538
/**
You can’t perform that action at this time.
0 commit comments