View Javadoc
1   /*
2   AnnotationUseStyle
3   elementStyle = ignore
4   closingParens = ignore
5   trailingArrayComma = ALWAYS
6   
7   
8   */
9   
10  package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
11  
12  public class InputAnnotationUseStyleWithTrailingComma {
13      @SuppressWarnings({"common",})
14      public void foo() {
15          @SuppressWarnings({"common","foo",})
16          Object o = new Object() {
17              @SuppressWarnings(value={"common",})
18              public String toString() {
19                  @SuppressWarnings(value={"leo","herbie",})
20                  final String pooches = "leo.herbie";
21                  return pooches;
22              }
23          };
24      }
25  
26      @Test(value={"foo",}, more={"bar",})
27      enum P {
28          @Pooches(tokens={Pooches.class,},other={1,})
29          L,
30  
31          Y;
32      }
33  }
34  
35  @interface Test {
36      String[] value();
37      String[] more() default {};
38  }
39  
40  @interface Pooches {
41      Class<?>[] tokens();
42      int[] other();
43  }