mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +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
21 lines
371 B
Java
21 lines
371 B
Java
public class Foo {
|
|
public static void main(String[] args) {
|
|
<caret>foo(new X());
|
|
}
|
|
|
|
static void foo(X x) {
|
|
System.out.println(1);
|
|
System.out.println(x);
|
|
}
|
|
|
|
static class X {
|
|
X() {
|
|
System.out.println(0);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "2";
|
|
}
|
|
}
|
|
} |