Files
Anna Kozlova ddf076a38c redundant suppression: simple global tools do not start if not enabled => no need to explicit check (IDEA-225676)
new inspection context doesn't contain any tools so one need to initialize context with tools explicitly to perform checks there

GitOrigin-RevId: b43cbccc70651b8a43783970af11a81cfb5b6847
2019-11-07 02:40:58 +00:00

17 lines
316 B
Java

// "Fix all 'Redundant suppression' problems in file" "true"
import java.util.ArrayList;
public class Test {
@SafeVarargs
static <T> void foo(T... t){
}
void foo() {
//noinspection un<caret>checked
foo(new ArrayList<String>());
//noinspection unchecked
foo(new ArrayList<String>());
}
}