1 package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;
2
3 import java.awt.event.ActionEvent;
4 import java.awt.event.ActionListener;
5
6 import javax.swing.JButton;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 public class InputIndentationValidClassDefIndent
23 extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener {
24
25
26 }
27
28 class InputIndentationValidClassDefIndent2
29 extends java.awt.event.MouseAdapter implements java.awt.event.MouseListener
30 {
31
32 }
33
34 class InputIndentationValidClassDefIndent3
35 extends java.awt.event.MouseAdapter
36 implements java.awt.event.MouseListener
37 {
38
39 }
40
41 final class InputIndentationValidClassDefIndent4
42 extends java.awt.event.MouseAdapter
43 implements java.awt.event.MouseListener
44 {
45
46 }
47
48 final
49 class InputIndentationValidClassDefIndent4a
50 extends java.awt.event.MouseAdapter
51 implements java.awt.event.MouseListener
52 {
53
54 }
55
56 final class InputIndentationValidClassDefIndent5 extends Object
57 {
58
59 }
60
61 final class InputIndentationValidClassDefIndent6 extends Object {
62
63 class foo { }
64
65
66 class foo2 { public int x; }
67
68
69 class foo3 {
70 public
71 int x;
72 }
73
74
75 class foo4 {
76 public int x;
77 }
78
79
80 private void myMethod() {
81 class localFoo {
82
83 }
84
85 class localFoo2 {
86 int x;
87
88 int func() { return 3; }
89 }
90
91
92
93
94
95
96 new JButton().addActionListener(new ActionListener()
97 {
98 public void actionPerformed(ActionEvent e) {
99
100 }
101 });
102
103
104 new JButton().addActionListener(new ActionListener() {
105 public void actionPerformed(ActionEvent e) {
106 int i = 2;
107 }
108 });
109
110 Object o = new ActionListener()
111 {
112 public void actionPerformed(ActionEvent e) {
113
114 }
115 };
116
117 myfunc2(10, 10, 10,
118 myfunc3(11, 11,
119 11, 11),
120 10, 10,
121 10);
122 }
123
124 private void myfunc2(int a, int b, int c, int d, int e, int f, int g) {
125 }
126
127 private int myfunc3(int a, int b, int c, int d) {
128 return 1;
129 }
130
131
132 public static final Operator LT_OR_EQUAL =
133 new Operator(
134 "<=",
135 new OperatorHelper()
136 {
137 public boolean compare(int value1, int value2)
138 {
139 return (value1 <= value2);
140 }
141
142 public boolean co(Comparable<Object> ob1, Comparable<Object> ob2)
143 {
144 return (ob1.compareTo(ob2) <= 0);
145 }
146 });
147 }
148
149 class HashingContainer<K, V> {
150 @Deprecated
151 public Object[] table;
152
153 @Override
154 public String toString() {
155 return "";
156 }
157 }
158
159 class Operator {
160 public Operator(String str, OperatorHelper handler) {
161 }
162 }
163
164 class OperatorHelper {
165 }