1
2
3
4
5
6
7
8 package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation;
9
10 public class InputCommentsIndentationInSwitchBlockOne {
11
12 private static void fooSwitch() {
13 switch("") {
14 case "0":
15 case "1":
16
17 foo1();
18 break;
19 case "2":
20
21
22 foo1();
23
24 break;
25 case "3":
26
27
28 foo1();
29
30 break;
31 case "5":
32 foo1();
33
34 case "6":
35 int k = 7;
36
37 case "7":
38 if (true) {}
39
40 case "8":
41 break;
42 case "9":
43 foo1();
44
45 case "10": {
46 if (true) {}
47
48 }
49 case "11": {
50
51 }
52 case "28": {
53
54 }
55 case "12": {
56
57 int i;
58 }
59 case "13": {
60
61 }
62 case "14": {
63
64 }
65 case "15": {
66 foo1();
67
68 }
69 case "16": {
70 int a;
71 }
72
73 case "17": {
74 int a;
75 }
76
77 case "18": { System.lineSeparator();
78 }
79 case "19":
80
81 case "20":
82
83 case "21":
84 default:
85
86 break;
87 }
88 }
89
90 private static void foo1() {
91 if (true) {
92 switch(1) {
93 case 0:
94
95 case 1:
96
97 int b = 10;
98 default:
99
100 }
101
102 }
103 }
104 }