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