aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/InputDifferentUseStyles.java
blob: 48fda7398ae7b9cfe52ff8b4ef45f1dd241397ab (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
package com.puppycrawl.tools.checkstyle.checks.annotation;

@Deprecated
@SomeArrays(pooches={DOGS.LEO})
@SuppressWarnings({""})
public class InputDifferentUseStyles
{
    
}

@SomeArrays(pooches={DOGS.LEO}, um={}, duh={"bleh"})
@SuppressWarnings("") //compact_no_array
@Deprecated()
class Dep {
    
}

@Deprecated
@SomeArrays(pooches={DOGS.LEO})
@SuppressWarnings({""})
enum SON {
    
    @Deprecated
    @SomeArrays(pooches={DOGS.LEO}, um={""}, duh={"bleh"})
    @APooch(dog=DOGS.HERBIE)
    @Another("") //compact_no_array
    ETHAN
}

@MyAnnotation13()
enum DOGS {
    
    @Deprecated()
    LEO,
    HERBIE
}

@interface SomeArrays {
    @Another("") //compact
    String[] um() default {};
    @Another({""}) //compact
    String[] duh() default {};
    @Another(value={""}) //expanded
    DOGS[] pooches();
}

@Another(value={""}) //expanded
enum E {
    
}

@interface APooch {
    DOGS dog();
}

@interface Another {
    String[] value();
    @Another({"foo", "bar"}) //compact style
    String value1() default "";
}

@SomeArrays(pooches = {})
@Another({})
class Closing {
}