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