Skip to content

Commit fe40e23

Browse files
To remove un-used variable
1 parent a46d3bf commit fe40e23

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/java.base/share/classes/java/lang/String.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3887,6 +3887,7 @@ public String toUpperCase() {
38873887
*/
38883888

38893889
public String toCaseFold() {
3890+
System.out.println("String.toCaseFold()");
38903891
return isLatin1() ? StringLatin1.toCaseFold(this, value)
38913892
: StringUTF16.toCaseFold(this, value);
38923893
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class TestStringToCaseFold {
2+
public static void main(String[] args) throws Exception {
3+
System.out.println("A\u00dfbc".toCaseFold());
4+
}
5+
}

test/jdk/java/lang/String/UnicodeCaseFoldingTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343

4444
public class UnicodeCaseFoldingTest {
4545

46-
private Object[] strs;
47-
4846
@Test
4947
void testAllCodePointsListedInCaseFoldinigTxt() throws Throwable {
5048
var filter = "^.*; [CF]; .*$"; // C=common, F=full, for full case folding

0 commit comments

Comments
 (0)