aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/Input15Extensions.java
blob: 2d36b8d30cbbaf38ac7e89d4a36f70ec4d689f7a (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
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0

/**                                                                           //indent:0 exp:0
 * This test-input is intended to be checked using following configuration:   //indent:1 exp:1
 *                                                                            //indent:1 exp:1
 * arrayInitIndent = 4                                                        //indent:1 exp:1
 * basicOffset = 4                                                            //indent:1 exp:1
 * braceAdjustment = 0                                                        //indent:1 exp:1
 * caseIndent = 4                                                             //indent:1 exp:1
 * forceStrictCondition = false                                               //indent:1 exp:1
 * lineWrappingIndentation = 4                                                //indent:1 exp:1
 * tabWidth = 4                                                               //indent:1 exp:1
 * throwsIndent = 4                                                           //indent:1 exp:1
 *                                                                            //indent:1 exp:1
 *                                                                            //indent:1 exp:1
 */                                                                           //indent:1 exp:1
@interface MyAnnotation3 { //indent:0 exp:0
    String name(); //indent:4 exp:4
    int version(); //indent:4 exp:4
} //indent:0 exp:0

@MyAnnotation3(name = "ABC", version = 1) //indent:0 exp:0
public class Input15Extensions //indent:0 exp:0
{ //indent:0 exp:0

} //indent:0 exp:0

enum Enum1 //indent:0 exp:0
{ //indent:0 exp:0
    A, B, C; //indent:4 exp:4
    Enum1() {} //indent:4 exp:4
    public String toString() { //indent:4 exp:4
        return ""; //some custom implementation //indent:8 exp:8
    } //indent:4 exp:4
} //indent:0 exp:0

interface TestRequireThisEnum //indent:0 exp:0
{ //indent:0 exp:0
    enum DAY_OF_WEEK //indent:4 exp:4
    { //indent:4 exp:4
        SUNDAY, //indent:8 exp:8
        MONDAY, //indent:8 exp:8
        TUESDAY, //indent:8 exp:8
        WEDNESDAY, //indent:8 exp:8
        THURSDAY, //indent:8 exp:8
        FRIDAY, //indent:8 exp:8
        SATURDAY //indent:8 exp:8
    } //indent:4 exp:4
} //indent:0 exp:0