blob: d4e7f076b53a868c240ff06a1ece289b54e82c41 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
package com.puppycrawl.tools.checkstyle.checks.design;
public class InputInnerClass {
public int test1 = 100;
public void methodTestInner1() {
double test2 = 200;
class InnerInMethod1 {
void methodTest1() {
System.identityHashCode("test1");
}
}
int test3 = 300;
}
public void methodTestInner2() {
int test5 = 500;
class InnerInMethod2 {
int test6 = 500;
}
int test6 = 600;
int test8 = 800;
}
class Inner1 {
int test4 = 400;
public void methodTestInner3() {
int test9 = 500;
class InnerInMethod3 {
int test10 = 500;
}
int test11 = 600;
int test12 = 800;
}
}
void methodTest2() { //error
System.identityHashCode("test2");
}
}
class Temp2 {
class Inner1 {
int test4 = 400;
public void methodTestInner3() {
int test9 = 500;
class InnerInMethod3 {
int test10 = 500;
}
int test11 = 600;
int test12 = 800;
}
}
void methodTest2() { //error
System.identityHashCode("test2");
}
private int i = 0; //error
}
class Temp3 {
class InnerCheck {
private int I = 0;
}
public int[] getDefaultTokens()
{
return new int[]{1, };
}
}
class Temp4 {
class InnerCheck {
class InnerInnerCheck {
private int a = 0;
}
class InnerInnerCheck2 {
private int a = 0;
}
private int I = 0; // error
}
}
|