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