1 package com.google.checkstyle.test.chapter4formatting.rule4861blockcommentstyle;
2
3
4 public class InputCommentsIndentationInEmptyBlock {
5
6 private void foo1() {
7 int a = 5;
8 int b = 3;
9 int v = 6;
10 if (a == b && v == b
11 || (a == 1
12
13
14
15
16
17
18 && b == 1)) {
19
20 }
21 }
22
23 private void foo2() {
24 int a = 5;
25 int b = 3;
26 int v = 6;
27 if (a == b && v == b || (a == 1 && b == 1)) {
28
29
30 }
31 }
32
33 private void foo3() {
34 int a = 5;
35 int b = 3;
36 int v = 6;
37 if (a == b && v == b || (a == 1 && b == 1)) {
38
39 }
40
41 }
42
43
44 @SuppressWarnings("unused")
45 private static void foo4() {
46 if (true) {
47
48 }
49 if (true) {
50 }
51 }
52
53
54 @SuppressWarnings("unused")
55 private static void foo5() {
56 if (true) {
57
58
59 }
60 if (true) {
61 }
62 }
63
64
65 public void foo6() {
66 try {
67
68 } catch (Exception e) {
69
70 }
71
72 }
73
74
75 public void foo7() {
76 try {
77
78 } catch (Exception e) {
79
80 }
81 }
82
83 private static class MyClass extends Object {
84
85 }
86 }