mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
+ warn if fields should be used in class initializers which would cause NPE; test conflicts in tests GitOrigin-RevId: a3db679f87d68924c94a3a9f082cafd527eebd5b
24 lines
488 B
Java
24 lines
488 B
Java
public class YoYo {
|
|
Object y;
|
|
static class YoYoYo {
|
|
private final YoYo anObject;
|
|
private final Object y;
|
|
Object x;
|
|
Object[] xx;
|
|
|
|
public YoYoYo(YoYo anObject, Object y) {
|
|
this.anObject = anObject;
|
|
this.y = y;
|
|
this.x = y;
|
|
this.xx = new Object[]{y};
|
|
}
|
|
|
|
void foo (){
|
|
YoYo yoYoy = anObject;
|
|
Object t = y;
|
|
Object t1 = yoYoy.y;
|
|
}
|
|
}
|
|
}
|
|
|