mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
+ warn if fields should be used in class initializers which would cause NPE; test conflicts in tests GitOrigin-RevId: a3db679f87d68924c94a3a9f082cafd527eebd5b
21 lines
286 B
Java
21 lines
286 B
Java
class Test8 {
|
|
|
|
void bar() {
|
|
}
|
|
|
|
static class B {
|
|
|
|
private final Test8 anObject;
|
|
int c;
|
|
|
|
public B(Test8 anObject) {
|
|
this.anObject = anObject;
|
|
}
|
|
|
|
void foo() {
|
|
c = 10;
|
|
anObject.bar();
|
|
}
|
|
}
|
|
}
|