mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
17 lines
326 B
Java
17 lines
326 B
Java
class CallChainExpression {
|
|
String foo() {
|
|
String s = newMethod();
|
|
System.out.println(s);
|
|
return s;
|
|
}
|
|
|
|
private String newMethod() {
|
|
return A.a().b().c;
|
|
}
|
|
|
|
static class A {
|
|
static A a() { return new A(); }
|
|
A b() { return this; }
|
|
String c = "";
|
|
}
|
|
} |