1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;
2
3 import java.awt.event.ActionEvent;
4 import java.awt.event.ActionListener;
5
6 import javax.swing.JButton;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 public class InputIndentationInvalidClassDefIndent extends Object {
23
24
25 }
26
27 class InputIndentationInvalidClassDefIndentB extends javax.swing.JButton
28 {
29
30
31 }
32
33
34 class InputIndentationInvalidClassDefIndentC
35 {
36
37
38 }
39
40
41
42 class InputIndentationValidClassDefIndent22
43 extends java.awt.event.MouseAdapter
44 implements java.awt.event.MouseListener
45 {
46
47 }
48
49 class InputIndentationValidClassDefIndent33
50 extends java.awt.event.MouseAdapter
51 implements java.awt.event.MouseListener
52 {
53
54 }
55
56 final class InputIndentationValidClassDefIndent44
57 extends java.awt.event.MouseAdapter
58 implements
59 java.awt.event.MouseListener
60 {
61
62 }
63
64 final class InputIndentationValidClassDefIndent55 extends Object
65 {
66
67 }
68
69
70 final class InputIndentationValidClassDefIndent5b extends Object
71 {
72
73 }
74
75
76 class InputIndentationInvalidClassDefIndentc2
77 extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener {
78
79
80 }
81
82
83
84 final class InputIndentationValidClassDefIndent66 extends Object {
85
86 class foo { }
87
88 class fooBS { }
89
90
91 class foo2 { public int x; }
92
93
94 class foo3 {
95 public
96 int x;
97 }
98
99 class foo3b {
100 public
101 int x;
102 }
103
104
105 class foo4 {
106 public int x;
107 }
108
109 class foo4c {
110 public int x;
111 }
112
113 class foo4b {
114 public int x;
115 }
116
117
118 private void myMethod() {
119 class localFoo {
120
121 }
122 class localFoo1 {
123
124 }
125
126 class localFoo2 {
127 int x;
128
129 int func() { return 3; }
130 }
131
132 new JButton().addActionListener(new ActionListener()
133 {
134 public void actionPerformed(ActionEvent e) {
135
136 }
137 });
138
139
140 new JButton().addActionListener(new ActionListener()
141 {
142 public void actionPerformed(ActionEvent e) {
143
144 }
145 });
146
147
148 new JButton().addActionListener(new ActionListener()
149 {
150 public void actionPerformed(ActionEvent e) {
151
152 }
153 });
154
155
156 new JButton().addActionListener(new ActionListener() {
157 public void actionPerformed(ActionEvent e) {
158 int i = 2;
159 }
160 });
161
162 Object o = new ActionListener()
163 {
164 public void actionPerformed(ActionEvent e) {
165
166 }
167 };
168
169 myfunc2(10, 10, 10,
170 myfunc3(11, 11,
171 11, 11),
172 10, 10,
173 10);
174
175
176 }
177
178 private void myfunc2(int a, int b, int c, int d, int e, int f, int g) {
179 }
180
181 private int myfunc3(int a, int b, int c, int d) {
182 return 1;
183 }
184 }
185
186
187 final
188 class InputIndentationValidClassDefIndent4d
189 extends
190 java.awt.event.MouseAdapter
191 implements
192 java.awt.event.MouseListener
193 {
194
195 }