KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > InputLeftCurlyMethod


1 ////////////////////////////////////////////////////////////////////////////////
2
// Test case file for checkstyle.
3
// Created: 2001
4
////////////////////////////////////////////////////////////////////////////////
5
package com.puppycrawl.tools.checkstyle;
6
7 /**
8  * Test case for correct use of braces.
9  * @author Oliver Burn
10  **/

11 class InputLeftCurlyMethod
12 {
13     InputLeftCurlyMethod() {}
14     InputLeftCurlyMethod(String JavaDoc aOne) {
15     }
16     InputLeftCurlyMethod(int aOne)
17     {
18     }
19
20     void method1() {}
21     void method2() {
22     }
23     void method3()
24     {
25     }
26     void method4()
27     {
28     }
29     void method5(String JavaDoc aOne,
30                  String JavaDoc aTwo)
31     {
32     }
33     void method6(String JavaDoc aOne,
34                  String JavaDoc aTwo) {
35     }
36 }
37
38 enum InputLeftCurlyMethodEnum
39 {
40     CONSTANT1("hello")
41     {
42         void method1() {}
43         void method2() {
44         }
45         void method3()
46         {
47         }
48         void method4()
49         {
50         }
51         void method5(String JavaDoc aOne,
52                      String JavaDoc aTwo)
53         {
54         }
55         void method6(String JavaDoc aOne,
56                      String JavaDoc aTwo) {
57         }
58     },
59
60     CONSTANT2("hello") {
61
62     },
63     
64     CONSTANT3("hellohellohellohellohellohellohellohellohellohellohellohellohellohello")
65     {
66     };
67
68     private InputLeftCurlyMethodEnum(String JavaDoc value)
69     {
70
71     }
72
73     void method1() {}
74     void method2() {
75     }
76     void method3()
77     {
78     }
79     void method4()
80     {
81     }
82     void method5(String JavaDoc aOne,
83                  String JavaDoc aTwo)
84     {
85     }
86     void method6(String JavaDoc aOne,
87                  String JavaDoc aTwo) {
88     }
89 }
90
91
Popular Tags