View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.annotation.suppresswarnings;
2   
3   import java.util.List;
4   import java.util.ArrayList;
5   
6   public class InputSuppressWarningsConstants
7   {
8       public static final String UNCHECKED = "unchecked";
9   
10      public static void test() {
11          @SuppressWarnings(UNCHECKED)
12          final List<String> dummyOne = (List<String>) new ArrayList();
13          @SuppressWarnings(InputSuppressWarningsConstants.UNCHECKED)
14          final List<String> dummyTwo = (List<String>) new ArrayList();
15      }
16  }