View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="AnnotationUseStyle"/>
5     </module>
6   </module>
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
10  
11  @interface SomeArrays {
12    String[] value() default {};
13  }
14  
15  // xdoc section -- start
16  @SuppressWarnings("unchecked") // ok as it's in implied style
17  @Deprecated // ok as it matches closingParens default property
18  @SomeArrays({"unchecked","unused"}) // ok as it's in implied style
19  public class Example1
20  {
21  
22  }
23  
24  // violation below 'Annotation style must be 'COMPACT_NO_ARRAY''
25  @SuppressWarnings(value={"unchecked"})
26  @Deprecated() // violation 'Annotation cannot have closing parenthesis'
27  // violation below 'Annotation array values cannot contain trailing comma'
28  @SomeArrays(value={"unchecked","unused",})
29  class TestStyle1
30  {
31  
32  }
33  // xdoc section -- end