mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
warn about usages of final fields in another fields even if they appear after constructor where it would be definitely assigned (IDEA-114280)
This commit is contained in:
@@ -133,8 +133,8 @@ class c2 {
|
||||
public c2() {
|
||||
c = "";
|
||||
}
|
||||
// its ok
|
||||
int k3 = c.length();
|
||||
|
||||
int k3 = <error descr="Variable 'c' might not have been initialized">c</error>.length();
|
||||
|
||||
c2(int i) {
|
||||
this();
|
||||
|
||||
Reference in New Issue
Block a user