Highlight uninitialized resource variable

This commit is contained in:
Roman Shevchenko
2011-02-25 20:59:19 +01:00
parent a469762b6d
commit 70370a5456
2 changed files with 7 additions and 1 deletions
@@ -66,6 +66,8 @@ class C {
}
void m4() throws Exception {
try (MyResource r = <error descr="Variable 'r' might not have been initialized">r</error>) { }
MyResource r;
try (MyResource r1 = <error descr="Variable 'r' might not have been initialized">r</error>) { }
}