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