IDEA-26350 (Bad Java code is green: variable might not have been initialized)

This commit is contained in:
Bas Leijdekkers
2013-09-11 16:18:45 +02:00
parent 7ec8c9ee2d
commit 8d7f95a137
3 changed files with 29 additions and 5 deletions
@@ -80,3 +80,15 @@ class Foo {
}
}
}
class T1 {
private final int i1;
private final int i2;
private final int i3;
private final int i4;
{
(<error descr="Variable 'i1' might not have been initialized">i1</error>)++;
++(<error descr="Variable 'i2' might not have been initialized">i2</error>);
<error descr="Variable 'i3' might not have been initialized">i3</error> += 1;
(i4) = 1;
}
}