mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 06:01:00 +07:00
for "Field can be local" inspection GitOrigin-RevId: 6343d49ea97183f67765966bf05108c80a4d3094
12 lines
329 B
Java
12 lines
329 B
Java
import java.util.ArrayList;
|
|
|
|
class Main {
|
|
private int <warning descr="Field can be converted to a local variable">i</warning>;
|
|
|
|
void test() {
|
|
i = 10;
|
|
i++;
|
|
ArrayList<String> list = new ArrayList<String>(i) {} ; // this use mistakenly turns off the 'field can be local' inspection
|
|
System.out.println(i);
|
|
}
|
|
} |