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 @SuppressWarnings("unchecked")
16 public class InputSuppressWarningsSingle7
17 {
18 @SuppressWarnings(" ")
19 class Empty {
20
21 @SuppressWarnings("")
22 public Empty() {
23
24 }
25 }
26
27 @SuppressWarnings("unused")
28 enum Duh {
29
30 @SuppressWarnings("unforgiven")
31 D;
32
33 public static void foo() {
34
35 @SuppressWarnings("unused")
36 Object o = new InputSuppressWarningsSingle7() {
37
38 @Override
39 @SuppressWarnings("unchecked")
40 public String toString() {
41 return "";
42 }
43 };
44 }
45 }
46
47 @SuppressWarnings("abcun")
48 @Documented
49 @interface Sweet {
50 int cool();
51 }
52
53 @Documented
54 @SuppressWarnings("abcun")
55 @interface MoreSweetness {
56
57 @SuppressWarnings("unused")
58 int cool();
59 }
60
61 public class Junk {
62
63 @SuppressWarnings("")
64 int a = 1;
65
66 @SuppressWarnings("unchecked")
67 @Deprecated
68 int b = 1;
69 void doFoo(String s, @SuppressWarnings("unchecked")String y) {
70
71 }
72 }
73
74 @SuppressWarnings((false) ? "unchecked" : "")
75 class Cond {
76
77 @SuppressWarnings((false) ? "" : "unchecked")
78 public Cond() {
79
80 }
81
82 @SuppressWarnings((false) ? (true) ? " " : "unused" : "unchecked")
83 public void aCond1() {
84
85 }
86
87 @SuppressWarnings((false) ? "unchecked" : (true) ? " " : "unused")
88 public void aCond2() {
89
90 }
91
92 @java.lang.SuppressWarnings((false) ? "unchecked" :
93 ("" == "") ? (false) ? (true) ? "" : "foo" : " " : "unused")
94 public void seriously() {
95
96 }
97 }
98 }