Skip to content

Commit 22696ae

Browse files
committed
Fix the test for java.lang.String#hashCode() to call by dynamic method
1 parent d151fe7 commit 22696ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/fixtures/java/JavaLangStringTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public static void concat(String a, String b)
1212

1313
public static void testHashCode()
1414
{
15-
System.out.println(Objects.hashCode("hello, world"));
16-
System.out.println(Objects.hashCode("HELLO, WORLD".toLowerCase()));
17-
System.out.println(Objects.hashCode(new String("hello, world")));
15+
System.out.println("hello, world".hashCode());
16+
System.out.println("HELLO, WORLD".toLowerCase().hashCode());
17+
System.out.println((new String("hello, world")).hashCode());
1818
}
1919

2020
public static void replace(String a, String b, String c)

0 commit comments

Comments
 (0)