1
2
3
4
5
6
7
8
9
10
11 package com.puppycrawl.tools.checkstyle.checks.annotation.suppresswarnings;
12
13 import java.lang.annotation.Documented;
14
15
16 @SuppressWarnings("unchecked")
17 public class InputSuppressWarningsSingle7
18 {
19
20 @SuppressWarnings(" ")
21 class Empty {
22
23
24 @SuppressWarnings("")
25 public Empty() {
26
27 }
28 }
29
30
31 @SuppressWarnings("unused")
32 enum Duh {
33
34
35 @SuppressWarnings("unforgiven")
36 D;
37
38 public static void foo() {
39
40
41 @SuppressWarnings("unused")
42 Object o = new InputSuppressWarningsSingle7() {
43
44 @Override
45 @SuppressWarnings("unchecked")
46
47 public String toString() {
48 return "";
49 }
50 };
51 }
52 }
53
54
55 @SuppressWarnings("abcun")
56 @Documented
57 @interface Sweet {
58 int cool();
59 }
60
61 @Documented
62 @SuppressWarnings("abcun")
63
64 @interface MoreSweetness {
65
66
67 @SuppressWarnings("unused")
68 int cool();
69 }
70
71 public class Junk {
72
73
74 @SuppressWarnings("")
75 int a = 1;
76
77
78 @SuppressWarnings("unchecked")
79 @Deprecated
80 int b = 1;
81 void doFoo(String s, @SuppressWarnings("unchecked")String y) {
82
83
84 }
85 }
86
87 @SuppressWarnings((false) ? "unchecked" : "")
88 class Cond {
89
90 @SuppressWarnings((false) ? "" : "unchecked")
91 public Cond() {
92
93 }
94
95 @SuppressWarnings((false) ? (true) ? " " : "unused" : "unchecked")
96 public void aCond1() {
97
98 }
99
100 @SuppressWarnings((false) ? "unchecked" : (true) ? " " : "unused")
101 public void aCond2() {
102
103 }
104
105
106 @java.lang.SuppressWarnings((false) ? "unchecked" :
107 ("" == "") ? (false) ? (true) ? "" : "foo" : " " : "unused")
108 public void seriously() {
109
110 }
111 }
112 }