aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/annotation/InputSuppressWarningsConstants.java
blob: bb646326107f420e03a15c2376a0e933c1fca3b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.puppycrawl.tools.checkstyle.checks.annotation;

import java.util.List;
import java.util.ArrayList;

public class InputSuppressWarningsConstants
{
    public static final String UNCHECKED = "unchecked";

    public static void test() {
        @SuppressWarnings(UNCHECKED)
        final List<String> dummyOne = (List<String>) new ArrayList();
        @SuppressWarnings(InputSuppressWarningsConstants.UNCHECKED)
        final List<String> dummyTwo = (List<String>) new ArrayList();
    }
}