[java] fix failing tests

GitOrigin-RevId: d69a9585d6e3bd93cdcb8f69e94d38c71b67e2f7
This commit is contained in:
Roman Ivanov
2023-08-18 16:10:57 +02:00
committed by intellij-monorepo-bot
parent 3a64f036e9
commit 71e10c185b
15 changed files with 88 additions and 59 deletions

View File

@@ -1,8 +1,9 @@
class TestClass {
public static final String s;
}
public static final String s;
static {
String foo = "foo";
s = foo.trim();
}
static {
String foo = "foo";
s = foo.trim();
}
}

View File

@@ -1,5 +0,0 @@
class X
final int x = 10;
final int y = 20;
final String s = <caret>"foo".trim();
}