mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
unused declaration: ensure unused local variables are reported inside entry points; suppress works for locals (IDEA-166622)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>A.java</file>
|
||||
<description>Variable <code>i</code> is never used</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
class A {
|
||||
public static void main(String[] args) {
|
||||
int i = 0;
|
||||
@SuppressWarning("unused") int j = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user