blob: c3280cd73389956292bf485c1518a48b35dd341b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package com.puppycrawl.tools.checkstyle.checks.annotation;
public class InputSuppressWarningsHolder {
static final String UNUSED = "unused";
@SuppressWarnings(UNUSED)
int a;
@SuppressWarnings(InputSuppressWarningsHolder.UNUSED)
int b;
@SuppressWarnings(com.puppycrawl.tools.checkstyle.checks.annotation.InputSuppressWarningsHolder.UNUSED)
int c;
@SuppressWarnings(value = UNUSED)
int d;
@SuppressWarnings(value = InputSuppressWarningsHolder.UNUSED)
int e;
@SuppressWarnings(value = com.puppycrawl.tools.checkstyle.checks.annotation.InputSuppressWarningsHolder.UNUSED)
int f;
@SuppressWarnings((1 != 1) ? "" : "unused")
int g;
@SuppressWarnings("un" + "used")
int h;
@SuppressWarnings((String) "unused")
int i;
@SuppressWarnings({})
int j;
@SuppressWarnings({UNUSED})
int k;
@SuppressWarnings({"unused", true ? "unused" : ""})
int l;
}
class CustomSuppressWarnings {
@SuppressWarnings
private @interface SuppressWarnings {
}
}
|