01: ////////////////////////////////////////////////////////////////////////////////
02: // Test case file for checkstyle.
03: // Created: 2001
04: ////////////////////////////////////////////////////////////////////////////////
05: package com.puppycrawl.tools.checkstyle;
06:
07: /**
08: * Test case for correct use of braces.
09: * @author Oliver Burn
10: **/
11: class InputLeftCurlyMethod {
12: InputLeftCurlyMethod() {
13: }
14:
15: InputLeftCurlyMethod(String aOne) {
16: }
17:
18: InputLeftCurlyMethod(int aOne) {
19: }
20:
21: void method1() {
22: }
23:
24: void method2() {
25: }
26:
27: void method3() {
28: }
29:
30: void method4() {
31: }
32:
33: void method5(String aOne, String aTwo) {
34: }
35:
36: void method6(String aOne, String aTwo) {
37: }
38: }
39:
40: enum InputLeftCurlyMethodEnum {
41: CONSTANT1("hello") {
42: void method1() {
43: }
44:
45: void method2() {
46: }
47:
48: void method3() {
49: }
50:
51: void method4() {
52: }
53:
54: void method5(String aOne, String aTwo) {
55: }
56:
57: void method6(String aOne, String aTwo) {
58: }
59: },
60:
61: CONSTANT2("hello") {
62:
63: },
64:
65: CONSTANT3(
66: "hellohellohellohellohellohellohellohellohellohellohellohellohellohello") {
67: };
68:
69: private InputLeftCurlyMethodEnum(String value) {
70:
71: }
72:
73: void method1() {
74: }
75:
76: void method2() {
77: }
78:
79: void method3() {
80: }
81:
82: void method4() {
83: }
84:
85: void method5(String aOne, String aTwo) {
86: }
87:
88: void method6(String aOne, String aTwo) {
89: }
90: }
|