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