1 package com.google.checkstyle.test.chapter4formatting.rule4861blockcommentstyle;
2
3
4 public class InputCommentsIndentationCommentIsAtTheEndOfBlock {
5
6
7 public void foo1() {
8 foo2();
9
10 }
11
12
13 public void foo2() {
14
15 foo3();
16
17 }
18
19
20 public void foo3() {
21 foo2();
22
23 }
24
25
26 public void foo4() {
27 foooooooooooooooooooooooooooooooooooooooooo();
28
29 }
30
31
32 public void foooooooooooooooooooooooooooooooooooooooooo() {}
33
34
35
36
37
38 public void foo7() {
39
40 int a = 0;
41
42 }
43
44
45
46
47 public void foo8() {}
48
49
50 public class TestClass {
51
52 public void test() {
53
54
55 int a = 0;
56
57 }
58
59 }
60
61
62 public void foo9() {
63
64 this.foo1();
65
66 }
67
68
69
70
71
72
73 public void foo11() {
74 String.valueOf(new Integer(0)).trim().length();
75
76 }
77
78
79 public void foo12() {
80
81 String
82 .valueOf(new Integer(0))
83 .trim()
84 .length();
85
86 }
87
88
89 public void foo13() {
90 String.valueOf(new Integer(0)).trim().length();
91
92 }
93
94
95 public void foo14() {
96
97 String.valueOf(new Integer(0))
98 .trim()
99 .length();
100
101 }
102
103
104 public void foo15() {
105 String.valueOf(new Integer(0));
106
107 }
108
109
110 public void foo16() {
111
112 String
113 .valueOf(new Integer(0));
114
115 }
116
117
118 public void foo17() {
119 String.valueOf(new Integer(0))
120 .trim()
121
122 .length();
123 }
124
125
126 public void foo18() {
127
128 String
129 .valueOf(new Integer(0))
130 .trim()
131
132 .length();
133 }
134
135
136 public void foo19() {
137 (new Thread(
138 new Runnable() {
139 @Override
140 public void run() {}
141 }))
142 .run();
143
144 }
145
146
147 public void foo20() {
148
149 (new Thread(new Runnable() {
150 @Override
151 public void run() {
152
153 }
154 }))
155 .run();
156
157 }
158
159
160 public void foo21() {
161 int[] array = new int[5];
162
163 java.util.List<String> expected = new java.util.ArrayList<>();
164 for (int i = 0; i < 5; i++) {
165 org.junit.Assert.assertEquals(expected.get(i), array[i]);
166 }
167 String s =
168 String.format(
169 java.util.Locale.ENGLISH,
170 "The array element "
171 + "immediately following the end of the collection should be nulled",
172 array[1]);
173
174 }
175
176
177 public void foo22() {
178 int[] array = new int[5];
179
180 java.util.List<String> expected = new java.util.ArrayList<>();
181 for (int i = 0; i < 5; i++) {
182 org.junit.Assert.assertEquals(expected.get(i), array[i]);
183 }
184
185 String s = String.format(java.util.Locale.ENGLISH, "The array element "
186 + "immediately following the end of the collection should be nulled",
187 array[1]);
188
189 }
190
191
192 public void foo23() {
193 new Object();
194
195 }
196
197
198 public void foo24() {
199
200 new Object();
201
202 }
203
204
205 public String foo25() {
206 return String.format(java.util.Locale.ENGLISH, "%d", 1);
207
208 }
209
210
211 public String foo26() {
212
213 return String.format(java.util.Locale.ENGLISH, "%d",
214 1);
215
216 }
217
218
219 public void foo27() {
220
221
222 foo17();
223
224
225 }
226
227
228 public String foo28() {
229 int a = 5;
230 return String.format(java.util.Locale.ENGLISH, "%d", 1);
231
232 }
233
234
235 public String foo29() {
236 int a = 5;
237
238 return String.format(java.util.Locale.ENGLISH, "%d",
239 1);
240
241 }
242
243
244 public void foo30() {
245
246
247 int a = 5;
248
249 }
250
251
252 public void foo31() {
253 String s = new String("A" + "B" + "C");
254
255 }
256
257
258 public void foo32() {
259
260 String s = new String("A"
261 + "B"
262 + "C");
263
264 }
265
266
267 public void foo33() {
268
269
270 this.foo22();
271
272 }
273
274
275 public void foo34() throws Exception {
276 throw new Exception("", new Exception());
277
278 }
279
280
281 public void foo35() throws Exception {
282
283 throw new Exception("",
284 new Exception()
285 );
286
287 }
288
289
290 public void foo36() throws Exception {
291
292 throw new Exception("",
293 new Exception()
294 );
295
296 }
297
298
299 public void foo37() throws Exception {
300 throw new Exception("", new Exception());
301
302 }
303
304
305 public void foo38() throws Exception {
306
307 throw new Exception("", new Exception());
308
309 }
310
311
312 public void foo39() throws Exception {
313
314 throw new Exception("",
315 new Exception());
316
317 }
318
319
320 public void foo40() throws Exception {
321 int a = 88;
322
323 throw new Exception("", new Exception());
324
325 }
326
327
328 public void foo41() throws Exception {
329 int a = 88;
330 throw new Exception("", new Exception());
331
332 }
333
334
335 public void foo42() {
336 int a = 5;
337 if (a == 5) {
338 int b;
339
340 } else if (a == 6) {
341
342 }
343 }
344
345
346 public void foo43() {
347 try {
348 int a;
349
350 } catch (Exception e) {
351
352 }
353 }
354
355
356 public void foo44() {
357 int ar = 5;
358
359 ar = 6;
360
361 }
362
363
364 public void foo45() {
365 int ar = 5;
366
367
368 ar = 6;
369
370 }
371
372
373 public void foo46() {
374
375
376
377
378 }
379
380
381 public void foo47() {
382 int a = 5;
383
384
385
386 }
387
388
389 public void foo48() {
390
391 int a = 5;
392
393
394
395 }
396
397
398 public void foo49() {
399
400
401
402 }
403
404
405 public void foo50() {
406 return;
407
408
409 }
410
411
412 public String foo51() {
413
414 return String
415 .valueOf("11"
416 );
417
418 }
419
420
421 public String foo52() {
422 return String.valueOf("11");
423
424 }
425
426
427 }
428