1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.blocks.rightcurly;
10
11 public class InputRightCurlyTestSwitchCase3 {
12
13 public void method() {
14 int x = 0;
15 switch (x) { }
16 switch (x) {
17 } int a;
18 switch (x) {
19 case(1): x = 0; break; }
20 switch (x)
21 {
22 }
23 switch (x)
24 {case(1): x=1;break;
25 } int b;
26 switch (x) {case(2): break; } int c;
27
28 switch (x) { } int d;
29 switch (x) { }
30 }
31
32 public void someMethod() {
33 int x = 90;
34 if (7>x) {
35 switch (x) {
36 case(1):
37 break;}}
38 }
39
40 public void someMethod2() {
41 int x = 90;
42 if (7>x) {
43 switch (x) { case(1): break;}}
44 }
45
46 public void someMethod3() {
47 int x = 90;
48 if (7>x) {switch (x) {case(1): break;}
49 }
50 if (7>x) {switch (x) { }}
51 if (7>x) {switch (x) {
52 }}
53 if (7>x) {switch (x) {
54 }
55 }
56 if (7>x) {switch (x) {
57 }
58 }
59 }
60 }