mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
LocalsOrMyInstanceFieldsControlFlowPolicy: disallow qualified this
According to JLS Chapter 16 qualified "this" is not considered as reference to field in definite assignment analysis Fixes IDEA-193386 Good code is red: Variable may not have been initialized
This commit is contained in:
+1
-1
@@ -249,6 +249,6 @@ class QualifiedThis {
|
||||
|
||||
QualifiedThis() {
|
||||
<error descr="Cannot assign a value to final variable 'x'">QualifiedThis.this.x</error> = 5;
|
||||
<error descr="Variable 'x' might already have been assigned to">this.x</error> = 5;
|
||||
this.x = 5;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user