mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
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
This commit is contained in:
committed by
intellij-monorepo-bot
parent
44bc9274ec
commit
ddf076a38c
+14
@@ -0,0 +1,14 @@
|
||||
// "Fix all 'Redundant suppression' problems in file" "true"
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Test {
|
||||
@SafeVarargs
|
||||
static <T> void foo(T... t){
|
||||
}
|
||||
|
||||
void foo() {
|
||||
foo(new ArrayList<String>());
|
||||
foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "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>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user