make static: move field initializer to constructor when initializer depends on outer class (IDEA-72738)

This commit is contained in:
Anna Kozlova
2012-11-06 11:32:53 +01:00
parent 55d9297db4
commit b492d490b1
4 changed files with 30 additions and 1 deletions
@@ -0,0 +1,12 @@
class Outer {
static class Inner {
Object x;
private Outer anObject;
public Inner(Outer anObject) {
this.anObject = anObject;
this.x = anObject.getClass();
}
}
}