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