1
2
3
4
5
6
7
8
9
10 package com.puppycrawl.tools.checkstyle.checks.annotation.annotationusestyle;
11
12
13 public class InputAnnotationUseStyleWithTrailingCommaIgnore
14 {
15 @SuppressWarnings({"common",})
16 public void foo() {
17
18
19 @SuppressWarnings({"common","foo",})
20 Object o = new Object() {
21
22
23 @SuppressWarnings(value={"common",})
24 public String toString() {
25
26 @SuppressWarnings(value={"leo","herbie",})
27 final String pooches = "leo.herbie";
28
29 return pooches;
30 }
31 };
32 }
33
34
35 @Test3(value={"foo",}, more={"bar",})
36
37
38
39 enum P {
40
41
42 @Pooches3(tokens={Pooches3.class,},other={1,})
43 L,
44
45
46
47
48 Y;
49 }
50
51 }
52
53 @interface Test3 {
54 String[] value();
55 String[] more() default {};
56 }
57
58 @interface Pooches3 {
59
60 Class<?>[] tokens();
61 int[] other();
62 }