blob: 4a0c01fe52de7aba43738523f302c9e971a1d69d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package com.siyeh.igtest.style;
import com.siyeh.ig.BaseInspection;
import com.siyeh.ig.BaseInspectionVisitor;
import org.jetbrains.annotations.NotNull;
public class One extends BaseInspection {
public BaseInspectionVisitor buildVisitor() {
return null;
}
public String getGroupDisplayName() {
return null;
}
@NotNull
protected String buildErrorString(Object... infos) {
return null;
}
public String getDisplayName() {
return null;
}
private static class Inner {
private static boolean test() {
return false;
}
}
}
class TestVariableScope {
public static void main(String[] args) {
int foo;
// blah
if (true) {
foo = 5;
}
doStuff(foo);
}
private static void doStuff(int foo) {
}
}
|