View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
2   
3   @Deprecated
4   @SomeArrays(pooches={DOGS.LEO})
5   @SuppressWarnings({""})
6   public class InputAnnotationUseStyleDifferentStyles
7   {
8       
9   }
10  
11  @SomeArrays(pooches={DOGS.LEO}, um={}, duh={"bleh"})
12  @SuppressWarnings("") //compact_no_array
13  @Deprecated()
14  class Dep {
15      
16  }
17  
18  @Deprecated
19  @SomeArrays(pooches={DOGS.LEO})
20  @SuppressWarnings({""})
21  enum SON {
22      
23      @Deprecated
24      @SomeArrays(pooches={DOGS.LEO}, um={""}, duh={"bleh"})
25      @APooch(dog=DOGS.HERBIE)
26      @Another("") //compact_no_array
27      ETHAN
28  }
29  
30  @InputAnnotationUseStyleCustomAnnotation()
31  enum DOGS {
32      
33      @Deprecated()
34      LEO,
35      HERBIE
36  }
37  
38  @interface SomeArrays {
39      @Another("") //compact
40      String[] um() default {};
41      @Another({""}) //compact
42      String[] duh() default {};
43      @Another(value={""}) //expanded
44      DOGS[] pooches();
45  }
46  
47  @Another(value={""}) //expanded
48  enum E {
49      
50  }
51  
52  @interface APooch {
53      DOGS dog();
54  }
55  
56  @interface Another {
57      String[] value();
58      @Another({"foo", "bar"}) //compact style
59      String value1() default "";
60  }
61  
62  @SomeArrays(pooches = {})
63  @Another({})
64  class Closing {
65  }