1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.annotation.suppresswarnings;
10
11
12
13 @SuppressWarnings("")
14 class Example1 {
15
16 @SuppressWarnings("")
17 final int num1 = 1;
18
19 @SuppressWarnings("all")
20 final int num2 = 2;
21
22 @SuppressWarnings("unused")
23 final int num3 = 3;
24
25 void foo1(@SuppressWarnings("unused") int param) {}
26
27 @SuppressWarnings("all")
28 void foo2(int param) {}
29 @SuppressWarnings("unused")
30 void foo3(int param) {}
31 @SuppressWarnings(true?"all":"unused")
32 void foo4(int param) {}
33 }
34
35 @SuppressWarnings("unchecked")
36 class Test1 {}
37