Files
openide/java/java-tests/testData/refactoring/makeClassStatic/Simple1_after.java
Anna Kozlova 9b353baa95 make class static: created make created field final by default (IDEA-31585)
+ warn if fields should be used in class initializers which would cause NPE; test conflicts in tests

GitOrigin-RevId: a3db679f87d68924c94a3a9f082cafd527eebd5b
2021-05-06 21:21:42 +00:00

21 lines
374 B
Java

public class YoYo {
int y;
static class YoYoYo {
private final YoYo anObject;
public YoYoYo(YoYo anObject) {
this.anObject = anObject;
}
void foo (){
YoYo yoYoy = anObject;
int t = anObject.y;
int t1 = yoYoy.y;
anObject.new Other();
}
}
class Other {}
}