mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
redundant suppressions: don't warn for unfair inspections (IDEA-199532)
This commit is contained in:
+2
-2
@@ -1,11 +1,11 @@
|
||||
// "Remove 'unchecked' suppression" "false"
|
||||
|
||||
@SuppressWarnings({"unchecked", "bla-blah-toolid"})
|
||||
@SuppressWarnings({"unc<caret>hecked", "bla-blah-toolid"})
|
||||
public enum Planet {
|
||||
MERCURY(),
|
||||
VENUS();
|
||||
|
||||
<T> Plan<caret>et(T... ts) {
|
||||
<T> Planet(T... ts) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -9,8 +9,8 @@ public class SampleSafeVarargs {
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
void fo<caret>o() {
|
||||
@SuppressWarnings({"unc<caret>hecked"})
|
||||
void foo() {
|
||||
asList(new ArrayList<String>());
|
||||
List<Object> l ;
|
||||
ArrayList strings = new ArrayList<String>();
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// "Remove 'unchecked' suppression" "false"
|
||||
import java.util.*;
|
||||
|
||||
public class SampleSafeVarargs {
|
||||
|
||||
@SafeVarargs
|
||||
static <T> List<T> asList(T... tt) {
|
||||
System.out.println(tt);
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unu<caret>sed"})
|
||||
void foo() {
|
||||
asList(new ArrayList<String>());
|
||||
List<Object> l ;
|
||||
ArrayList strings = new ArrayList<String>();
|
||||
l = strings;
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -11,8 +11,8 @@ public class Test {
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
void f<caret>oo() {
|
||||
@SuppressWarnings("unche<caret>cked")
|
||||
void foo() {
|
||||
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Remove 'unchecked' suppression" "false"
|
||||
import java.util.*;
|
||||
|
||||
@SuppressWarnings("ALL")
|
||||
public class Te<caret>st {
|
||||
@SuppressWarnings("A<caret>LL")
|
||||
public class Test {
|
||||
@SafeVarargs
|
||||
static <T> List<T> foo(T... t){
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user