mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
forbid references on final fields from another ones (IDEA-100237)
This commit is contained in:
@@ -227,4 +227,16 @@ class Y {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class IDEA100237 {
|
||||
static class Foo {
|
||||
final int bar;
|
||||
|
||||
Foo() {
|
||||
bar = 1;
|
||||
}
|
||||
|
||||
final Object baz = new Object() {
|
||||
final int qux = <error descr="Variable 'bar' might not have been initialized">bar</error>.hashCode() + 1;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user