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) {
54595459 * @since 1.5
54605460 */
54615461 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);
54645467 }
54655468
54665469 /**
@@ -5525,8 +5528,11 @@ public static boolean isUpperCase(char ch) {
55255528 * @since 1.5
55265529 */
55275530 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);
55305536 }
55315537
55325538 /**
You can’t perform that action at this time.
0 commit comments