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