Files
openide/java/java-tests/testData/refactoring/extractMethod/CodeDuplicatesWithStaticInitializer_after.java
Dmitry Jemerov b7e66aee44 test++
2009-09-10 20:21:16 +04:00

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;
}
}