aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/InputLeftCurlyMethod.java
blob: 57794df9d89e6a5ada095aec697b818ef7aa336d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle;

/**
 * Test case for correct use of braces.
 * @author Oliver Burn
 **/
class InputLeftCurlyMethod
{
    InputLeftCurlyMethod() {}
    InputLeftCurlyMethod(String aOne) {
    }
    InputLeftCurlyMethod(int aOne)
    {
    }

    void method1() {}
    void method2() {
    }
    void method3()
    {
    }
    void                                                               method4()
    {
    }
    void method5(String aOne,
                 String aTwo)
    {
    }
    void method6(String aOne,
                 String aTwo) {
    }
}

enum InputLeftCurlyMethodEnum
{
    CONSTANT1("hello")
    {
        void method1() {}
        void method2() {
        }
        void method3()
        {
        }
        void                                                               method4()
        {
        }
        void method5(String aOne,
                     String aTwo)
        {
        }
        void method6(String aOne,
                     String aTwo) {
        }
    },

    CONSTANT2("hello") {

    },
    
    CONSTANT3("hellohellohellohellohellohellohellohellohellohellohellohellohellohello")
    {
    };

    private InputLeftCurlyMethodEnum(String value)
    {

    }

    void method1() {}
    void method2() {
    }
    void method3()
    {
    }
    void                                                               method4()
    {
    }
    void method5(String aOne,
                 String aTwo)
    {
    }
    void method6(String aOne,
                 String aTwo) {
    }
}