1
2 package com.google.checkstyle.test.chapter4formatting.rule4861blockcommentstyle;
3
4 import java.util.Arrays;
5
6
7 public class InputCommentsIndentationSurroundingCode
8 {
9 private void foo1() {
10 if (true) {
11
12 int k = 0;
13
14 int b = 10;
15
16 }
17 }
18
19 private void foo2() {
20 if (true) {
21
22 int k = 0;
23
24
25
26
27 double d;
28
29
30
31 boolean bb;
32
33
34
35
36
37
38
39
40
41
42 boolean x;
43 }
44 }
45
46 private void foo3() {
47 int a = 5, b = 3, v = 6;
48 if (a == b
49 && v == b || ( a ==1
50
51
52
53 && b == 1) ) {
54 }
55 }
56
57 private static void com() {
58 boolean b = true;
59 }
60
61 private static final String[][] mergeMatrix = {
62
63 { "", },
64 { "", "", },
65 { "NEVER", "UNKNOWN", "NEVER", },
66 { "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN" }, };
67
68 private void foo4() {
69 if (!Arrays.equals(new String[]{""}, new String[]{""})
70 ) {
71 }
72 }
73
74
75
76 private static void l() {
77 }
78
79 public void foid5() {
80 String s = "";
81 s.toString().toString().toString();
82
83 }
84
85 public void foo6() {
86
87
88
89
90
91 String someStr = new String();
92 }
93
94 public void foo7() {
95
96
97
98
99
100 String someStr = new String();
101 }
102
103 public void foo8() {
104 String s = new String();
105
106
107
108
109 String someStr = new String();
110 }
111
112 public String foo9(String s1, String s2, String s3) {
113 return "";
114 }
115
116 public void foo10()
117 throws Exception {
118
119 final String pattern = "^foo$";
120
121 final String[] expected = {
122 "7:13: " + foo9("", "", ""),
123
124 };
125 }
126 }
127