mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-186381 bad code green: variable might already have been assigned
Fixed parentheses handling on the left-side of assignment and in unary operations Fixed error message priority
This commit is contained in:
+13
-1
@@ -130,4 +130,16 @@ class T29a {
|
||||
if (j > 0) break;
|
||||
} while (b == 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
class TX {
|
||||
private final int i;
|
||||
private final int j;
|
||||
private final int k;
|
||||
TX() {
|
||||
(i) = 1;
|
||||
(<error descr="Variable 'i' might already have been assigned to">i</error>) = 1;
|
||||
(j) = 1;
|
||||
(<error descr="Variable 'j' might already have been assigned to">j</error>)++;
|
||||
(<error descr="Variable 'k' might not have been initialized">k</error>)++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user