redundant suppression in the editor: treat suppress ALL

This commit is contained in:
Anna Kozlova
2018-10-01 18:50:39 +02:00
parent daff04fec4
commit fe3955570d
5 changed files with 134 additions and 50 deletions
@@ -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>());
}
}
@@ -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>());
}
}
@@ -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>());
}
}