1
2
3
4
5
6
7
8 package com.puppycrawl.tools.checkstyle.checks.suppresswarningsholder;
9
10 import java.lang.annotation.*;
11 import java.util.List;
12
13 public class InputSuppressWarningsHolder7 {
14
15 @TestSwAnnotation(@SuppressWarnings("unchecked"))
16 private List<String> testSwAnnotation;
17
18 @TestSwAnnotationVal(value = @SuppressWarnings("unchecked"))
19 private List<String> testSwAnnotationVal;
20
21 @TestSwAnnotationVal(value = {@SuppressWarnings("unchecked")})
22 private List<String> list1;
23
24 @TestSwAnnotationVal({@SuppressWarnings("unchecked"), @SuppressWarnings("unchecked")})
25 private List<String> list2;
26 }
27
28 @Retention(RetentionPolicy.RUNTIME)
29 @Target(ElementType.FIELD)
30 @interface TestSwAnnotation {
31 SuppressWarnings value() default @SuppressWarnings({"",});
32 }
33
34 @Target({ElementType.FIELD, ElementType.TYPE})
35 @Retention(RetentionPolicy.SOURCE)
36 @interface TestSwAnnotationVal{
37
38 SuppressWarnings[] value() default {@SuppressWarnings({"",})};
39
40 @Deprecated
41 @Retention(RetentionPolicy.SOURCE)
42 @Target({})
43 @interface AnyAnnotation {}
44 }