mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
redundant suppression available in the editor IDEA-151197
also, global inspection redundant suppressions made java independent (WEB-16634)
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ public class Test {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
//noinspec<caret>tion unchecked
|
||||
//noinspection unc<caret>hecked
|
||||
foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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>()));
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user