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

@interface SimpleType { //indent:0 exp:0
    Class<?> value(); //indent:4 exp:4
} //indent:0 exp:0

@interface PrecedingSimpleType { //indent:0 exp:0
    Class<?> value(); //indent:4 exp:4
} //indent:0 exp:0

@PrecedingSimpleType( //indent:0 exp:0
    value = Boolean.class //indent:4 exp:4
) //indent:0 exp:0
@SimpleType( //indent:0 exp:0
    value = Boolean.class //indent:4 exp:4
) //indent:0 exp:0
public class InputAnnotationClosingParenthesisEndsInSameIndentationAsOpening { //indent:0 exp:0
} //indent:0 exp:0

@PrecedingSimpleType( value = Boolean.class //indent:0 exp:0
) //indent:0 exp:0
@SimpleType( value = Boolean.class //indent:0 exp:0
) //indent:0 exp:0
class MultipleInputAnnotationClosingParenthesisJustLineAfterOpeningSameIndentationAsOpening { //indent:0 exp:0
} //indent:0 exp:0

@SimpleType( value = Boolean.class //indent:0 exp:0
) //indent:0 exp:0
class InputAnnotationClosingParenthesisJustLineAfterOpeningSameIndentationAsOpening { //indent:0 exp:0
} //indent:0 exp:0

@PrecedingSimpleType( value = Boolean.class //indent:0 exp:0
                ) //indent:16 exp:0 warn
@SimpleType( value = Boolean.class //indent:0 exp:0
                ) //indent:16 exp:0 warn
class InputAnnotationClosingParenthesisHasBadIndentation { //indent:0 exp:0

    @PrecedingSimpleType( value = Boolean.class //indent:4 exp:4
        ) //indent:8 exp:4 warn
    @SimpleType( value = Boolean.class //indent:4 exp:4
        ) //indent:8 exp:4 warn
    Boolean booleanField; //indent:4 exp:4

    @SimpleType( value = Boolean.class //indent:4 exp:4
        ) //indent:8 exp:4 warn
    Boolean anotherBooleanField; //indent:4 exp:4
} //indent:0 exp:0