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 InputCommentsIndentationSurroundingCode3One
15 {
16 private void foo1() {
17 if (true) {
18
19 int k = 0;
20 int b = 10;
21
22 }
23 }
24
25 private void foo2() {
26 if (true) {
27
28 int k = 0;
29
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 && b == 1) ) {
60 }
61 }
62
63 private static void com() {
64 boolean b = true;
65 }
66
67 private static final String[][] mergeMatrix = {
68
69 { "", },
70 { "", "", },
71 { "NEVER", "UNKNOWN", "NEVER", },
72 { "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN" }, };
73
74 private void foo4() {
75 if (!Arrays.equals(new String[]{""}, new String[]{""})
76 ) {
77 }
78 }
79
80
81
82 private static void l() {
83 }
84
85 public void foid5() {
86 String s = "";
87 s.toString().toString().toString();
88
89 }
90
91 public void foo6() {
92
93
94
95
96 String someStr = new String();
97 }
98
99 public void foo7() {
100
101
102
103
104 String someStr = new String();
105 }
106
107 }