mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
To compensate somewhat, inline parameters that are executed as the first expression inside the method (or previous expressions are harmless) GitOrigin-RevId: ff4bc5ce45bfb3e12a83dc8ccb97b1767558bcbe
18 lines
331 B
Plaintext
18 lines
331 B
Plaintext
public class Foo {
|
|
public static void main(String[] args) {
|
|
X x = new X();
|
|
System.out.println(1);
|
|
System.out.println(x);
|
|
}
|
|
|
|
static class X {
|
|
X() {
|
|
System.out.println(0);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "2";
|
|
}
|
|
}
|
|
} |