redundant suppression available in the editor IDEA-151197

also, global inspection redundant suppressions made java independent (WEB-16634)
This commit is contained in:
Anna.Kozlova
2018-09-21 19:37:01 +02:00
parent ec3d956aa1
commit 83a859546b
18 changed files with 231 additions and 199 deletions
@@ -7,7 +7,7 @@ public class Test {
}
void foo() {
//noinspec<caret>tion unchecked
//noinspection unc<caret>hecked
foo(new ArrayList<String>());
}
}
@@ -7,7 +7,7 @@ public class Test {
}
void foo() {
//noinsp<caret>ection unchecked,blah-blah-toolid
//noinspection un<caret>checked,blah-blah-toolid
foo(new ArrayList<String>());
}
}
@@ -12,7 +12,7 @@ public class Test {
}
void foo() {
//noinspe<caret>ction unchecked
//noinspection unc<caret>hecked
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>()));
}
}
@@ -8,7 +8,7 @@ public class Test {
}
void foo() {
//noinspe<caret>ction unchecked
//noinspection unche<caret>cked
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}
@@ -7,8 +7,8 @@ public class Test {
return null;
}
@SuppressWarnings("unchecked")
void fo<caret>o() {
@SuppressWarnings("unch<caret>ecked")
void foo() {
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}
@@ -1,8 +1,8 @@
// "Remove 'unchecked' suppression" "true"
import java.util.*;
@SuppressWarnings("unchecked")
public class Te<caret>st {
@SuppressWarnings("un<caret>checked")
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;
@@ -1,8 +1,8 @@
// "Remove 'unchecked' suppression" "true"
import java.util.*;
@SuppressWarnings({"unchecked", "bla-blah-toolid"})
public class Tes<caret>t {
@SuppressWarnings({"unch<caret>ecked", "bla-blah-toolid"})
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;