mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
make static: move field initializer to constructor when initializer depends on outer class (IDEA-72738)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user