mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
+ warn if fields should be used in class initializers which would cause NPE; test conflicts in tests GitOrigin-RevId: a3db679f87d68924c94a3a9f082cafd527eebd5b
18 lines
340 B
Java
18 lines
340 B
Java
class Test18 {
|
|
|
|
String str;
|
|
|
|
static class A {
|
|
private final Test18 anObject;
|
|
boolean flag;
|
|
|
|
public A(Test18 anObject, boolean flag) {
|
|
this.flag = flag;
|
|
this.anObject = anObject;
|
|
}
|
|
|
|
void foo() {
|
|
System.out.println("str = " + anObject.str);
|
|
}
|
|
}
|
|
} |