mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
Highlight uninitialized resource variable
This commit is contained in:
+2
@@ -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>) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user