mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
redundant suppression in the editor: treat suppress ALL
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Remove 'ALL' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
@SafeVarargs
|
||||
static <T> List<T> foo(T... t){
|
||||
return null;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Remove 'ALL' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
@SuppressWarnings({"AL<caret>L"})
|
||||
class Test {
|
||||
@SafeVarargs
|
||||
static <T> List<T> foo(T... t){
|
||||
return null;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "Remove 'unchecked' suppression" "false"
|
||||
import java.util.*;
|
||||
|
||||
@SuppressWarnings({"RedundantSuppression"})
|
||||
class Test {
|
||||
@SafeVarargs
|
||||
static <T> List<T> foo(T... t){
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"un<caret>checked"})
|
||||
void foo() {
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user