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