KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > indention > InputInvalidClassDefIndent


1 /*
2  * InputValidMethodIndent.java
3  *
4  * Created on November 11, 2002, 10:13 PM
5  */

6
7
8
9 package com.puppycrawl.tools.checkstyle.indention;
10
11 import java.awt.event.ActionEvent JavaDoc;
12 import java.awt.event.ActionListener JavaDoc;
13 import javax.swing.JButton JavaDoc;
14
15 /**
16  *
17  * @author jrichard
18  */

19   public class InputInvalidClassDefIndent extends java.awt.event.MouseAdapter JavaDoc implements java.awt.event.MouseListener JavaDoc {
20     
21
22 }
23
24 class InputInvalidClassDefIndentB extends java.awt.event.MouseAdapter JavaDoc implements java.awt.event.MouseListener JavaDoc
25   {
26     
27
28   }
29
30
31   class InputInvalidClassDefIndentC
32 {
33     
34
35   }
36
37
38
39 class InputValidClassDefIndent2
40   extends java.awt.event.MouseAdapter JavaDoc
41   implements java.awt.event.MouseListener JavaDoc
42 {
43
44 }
45
46 class InputValidClassDefIndent3
47   extends java.awt.event.MouseAdapter JavaDoc
48     implements java.awt.event.MouseListener JavaDoc
49 {
50
51 }
52
53 final class InputValidClassDefIndent4
54     extends java.awt.event.MouseAdapter JavaDoc
55   implements
56   java.awt.event.MouseListener JavaDoc
57 {
58
59 }
60
61   final class InputValidClassDefIndent5 extends java.awt.event.MouseAdapter JavaDoc implements java.awt.event.MouseListener JavaDoc
62   {
63
64 }
65
66   
67 final class InputValidClassDefIndent5b extends java.awt.event.MouseAdapter JavaDoc implements java.awt.event.MouseListener JavaDoc
68 {
69
70   }
71
72
73 class InputInvalidClassDefIndentc
74   extends java.awt.event.MouseAdapter JavaDoc implements java.awt.event.MouseListener JavaDoc {
75     
76
77 }
78   
79
80
81 final class InputValidClassDefIndent6 extends java.awt.event.MouseAdapter JavaDoc implements java.awt.event.MouseListener JavaDoc {
82
83   class foo { }
84   
85       class fooBS { }
86
87     
88   class foo2 { public int x; }
89
90     
91     class foo3 {
92       public
93             int x;
94     }
95
96     class foo3b {
97         public
98           int x;
99     }
100
101     
102     class foo4 {
103       public int x;
104     }
105     
106     class foo4c {
107         public int x;
108       }
109     
110       class foo4b {
111         public int x;
112     }
113
114       
115     private void myMethod() {
116       class localFoo {
117             
118         }
119           class localFoo1 {
120             
121           }
122
123         class localFoo2 {
124           int x;
125             
126             int func() { return 3; }
127         }
128
129           new JButton JavaDoc().addActionListener(new ActionListener JavaDoc()
130         {
131             public void actionPerformed(ActionEvent JavaDoc e) {
132                 
133             }
134         });
135
136         
137         new JButton JavaDoc().addActionListener(new ActionListener JavaDoc()
138       {
139             public void actionPerformed(ActionEvent JavaDoc e) {
140                 
141             }
142       });
143         
144
145         new JButton JavaDoc().addActionListener(new ActionListener JavaDoc()
146         {
147           public void actionPerformed(ActionEvent JavaDoc e) {
148                 
149           }
150         });
151       
152       
153         new JButton JavaDoc().addActionListener(new ActionListener JavaDoc() {
154             public void actionPerformed(ActionEvent JavaDoc e) {
155                 int i = 2;
156             }
157         });
158         
159         Object JavaDoc o = new ActionListener JavaDoc()
160         {
161             public void actionPerformed(ActionEvent JavaDoc e) {
162                 
163             }
164         };
165
166         myfunc2(10, 10, 10,
167             myfunc3(11, 11,
168                 11, 11),
169             10, 10,
170             10);
171           
172         
173     }
174     
175     private void myfunc2(int a, int b, int c, int d, int e, int f, int g) {
176     }
177     
178     private int myfunc3(int a, int b, int c, int d) {
179         return 1;
180     }
181 }
182
183
184 final
185 class InputValidClassDefIndent4d
186     extends
187         java.awt.event.MouseAdapter JavaDoc
188     implements
189         java.awt.event.MouseListener JavaDoc
190 {
191
192 }
193
Popular Tags