mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
IDEA-125947 not initialized final field should not be raised on any refs from inner classes
This commit is contained in:
@@ -236,9 +236,19 @@ class IDEA100237 {
|
||||
}
|
||||
|
||||
final Object baz = new Object() {
|
||||
final int qux = <error descr="Variable 'bar' might not have been initialized">bar</error>.hashCode() + 1;
|
||||
final int qux = bar.<error descr="Cannot resolve method 'hashCode()'">hashCode</error>() + 1;
|
||||
};
|
||||
}
|
||||
|
||||
static class Outer {
|
||||
final String a;
|
||||
class Inner {
|
||||
String b = a;
|
||||
}
|
||||
Outer() {
|
||||
a = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class StaticInitializerUsedInAnotherStaticField {
|
||||
|
||||
Reference in New Issue
Block a user