1   ////////////////////////////////////////////////////////////////////////////////
2   // Test case file for checkstyle.
3   // Created: 2001
4   ////////////////////////////////////////////////////////////////////////////////
5   package com.puppycrawl.tools.checkstyle.checks.blocks.leftcurly;
6   
7   /**
8    * Test case for correct use of braces.
9    * @author Oliver Burn
10   **/
11  class InputLeftCurlyMethod
12  {
13      InputLeftCurlyMethod() {}
14      InputLeftCurlyMethod(String 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 aOne,
30                   String aTwo)
31      {
32      }
33      void method6(String aOne,
34                   String 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 aOne,
52                       String aTwo)
53          {
54          }
55          void method6(String aOne,
56                       String aTwo) {
57          }
58      },
59  
60      CONSTANT2("hello") {
61  
62      },
63      
64      CONSTANT3("hellohellohellohellohellohellohellohellohellohellohellohellohellohello")
65      {
66      };
67  
68      private InputLeftCurlyMethodEnum(String 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 aOne,
83                   String aTwo)
84      {
85      }
86      void method6(String aOne,
87                   String aTwo) {
88      }
89  }