1
2
3
4
5
6
7
8
9
10
11
12 package com.puppycrawl.tools.checkstyle.checks.whitespace.emptylineseparator;
13
14
15
16
17
18
19
20 import java.lang.Object;
21
22 import java.lang.Class;
23
24
25
26 import java.lang.Integer;
27
28
29 import java.lang.Long;
30
31
32
33
34
35 import java.lang.Float;
36
37
38
39
40 import java.lang.Double;
41
42
43
44
45
46 import java.lang.Character;
47
48
49
50
51 import java.lang.String;
52
53
54
55
56
57 import java.lang.Object;
58
59
60
61
62 import java.lang.Boolean;
63
64 import java.lang.Byte;
65
66
67
68 import java.lang.Short;
69
70
71
72
73 import java.lang.Number;
74
75
76 import java.lang.Runnable;
77 import java.lang.Thread;
78
79
80
81
82
83 import java.lang.StringBuilder;
84
85
86
87
88
89 import static java.lang.Math.abs;
90
91 public class InputEmptyLineSeparatorWithComments2 {
92
93
94 public int testViolationWithoutComment = 1;
95
96 public int testNoViolationWithoutComment = 2;
97
98
99
100 public int testViolationWithSingleLineComment = 3;
101
102
103 public int testNoViolationWithSingleLineComment = 4;
104
105
106
107
108
109
110 public int testViolationWithMultilineComment = 5;
111
112
113
114
115
116 public int testNoViolationWithMultilineComment = 6;
117
118
119
120
121
122
123 public int testViolationWithJavadoc = 7;
124
125
126
127
128
129 public int testNoViolationWithJavadoc = 8;
130
131
132 public void testViolationWithoutComment() {
133 }
134
135 public void testNoViolationWithoutComment() {
136 }
137
138
139
140 public void testViolationWithSingleLineComment() {
141 }
142
143
144
145 public void testNoViolationWithSingleLineComment() {
146 }
147
148
149
150
151
152
153 public void testViolationWithMultilineComment() {
154 }
155
156
157
158
159
160 public void testNoViolationWithMultilineComment() {
161 }
162
163
164
165
166
167
168 public void testViolationWithJavadoc() {
169 }
170
171
172
173
174
175 public void testNoViolationWithJavadoc() {
176 }
177
178 public static class Class1 { }
179
180
181 public static class Class2 { }
182
183
184 public static class Class3 { }
185
186
187
188 public static class Class4 { }
189
190
191
192 public
193
194 static class Class5 { }
195
196
197
198 public
199
200 static class Class6 { }
201
202
203
204
205
206 public static class Class7 { }
207
208
209
210
211
212
213 public static class Class8 { }
214
215
216
217
218
219 public static class Class9 { }
220
221
222
223
224
225
226 public static class Class10 {
227 {
228
229 }
230 }
231
232
233 public interface Interface1 { }
234
235
236
237 public interface Interface2 { }
238
239 public
240
241 interface Interface3 { }
242
243
244
245
246
247
248 interface Interface4 { }
249
250
251
252
253
254
255
256 interface Interface5 { }
257
258
259
260 public enum Enum1 {
261 E1, E2
262 }
263
264
265 public enum Enum2 { }
266
267
268
269
270
271
272 public enum Enum3 { }
273
274
275 public enum Enum4 { }
276
277
278 public enum Enum5 { }
279
280
281
282
283 public
284
285
286
287 static
288
289 enum Enum6 { }
290
291
292
293 static {
294 abs(2);
295 }
296
297
298
299
300
301 {
302 abs(1);
303 }
304
305
306 { }
307
308
309
310 {
311 int i = 1;
312 }
313
314
315
316
317 public InputEmptyLineSeparatorWithComments2() {
318 testNoViolationWithJavadoc = 1;
319 }
320
321
322 public InputEmptyLineSeparatorWithComments2(int i) {
323 testNoViolationWithJavadoc = 1;
324 }
325
326
327
328
329
330 public InputEmptyLineSeparatorWithComments2(int i, int j) {
331 testNoViolationWithJavadoc = 1;
332 }
333
334
335
336
337
338
339
340
341
342
343
344 public InputEmptyLineSeparatorWithComments2(int i, int j, int k) {
345 testNoViolationWithJavadoc = 1;
346 }
347
348 }