1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation;
10
11 import java.util.*;
12
13
14 public class InputCommentsIndentationSurroundingCodeOne
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
32 int b = 10;
33
34
35 double d;
36
37
38
39 boolean bb;
40
41
42
43
44
45
46
47
48
49
50 boolean x;
51 }
52 }
53
54 private void foo3() {
55 int a = 5, b = 3, v = 6;
56 if (a == b
57 && v == b || ( a ==1
58
59
60
61 && b == 1) ) {
62 }
63 }
64
65 private static void com() {
66 boolean b = true;
67 }
68
69 private static final String[][] mergeMatrix = {
70
71 { "", },
72 { "", "", },
73 { "NEVER", "UNKNOWN", "NEVER", },
74 { "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN" }, };
75
76 private void foo4() {
77 if (!Arrays.equals(new String[]{""}, new String[]{""})
78 ) {
79 }
80 }
81
82
83
84 private static void l() {
85 }
86
87 public void foid5() {
88 String s = "";
89 s.toString().toString().toString();
90
91 }
92
93 public void foo6() {
94
95
96
97
98
99 String someStr = new String();
100 }
101
102 public void foo7() {
103
104
105
106
107
108 String someStr = new String();
109 }
110 }