mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
15 lines
236 B
Java
15 lines
236 B
Java
class C {
|
|
static C c;
|
|
static {
|
|
java.util.ArrayList<C> l = null;
|
|
l.add(newMethod());
|
|
}
|
|
|
|
void foo() {
|
|
System.out.println(newMethod());
|
|
}
|
|
|
|
private static C newMethod() {
|
|
return c;
|
|
}
|
|
} |