mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
redundant suppression: don't delete all same comments/top annotation when one suppress comment is actually to be deleted
This commit is contained in:
+3
@@ -9,6 +9,9 @@ public class Test {
|
||||
|
||||
void foo() {
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
|
||||
//noinspection unchecked
|
||||
ArrayList<String> list = new ArrayList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
@SafeVarargs
|
||||
static <T> List<T> foo(T... t){
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
void foo() {
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
|
||||
ArrayList<String> list = new ArrayList();
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -10,6 +10,9 @@ public class Test {
|
||||
void foo() {
|
||||
//noinspection unche<caret>cked
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
|
||||
//noinspection unchecked
|
||||
ArrayList<String> list = new ArrayList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
@SafeVarargs
|
||||
static <T> List<T> foo(T... t){
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
void foo() {
|
||||
//noinspection unche<caret>cked
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
|
||||
ArrayList<String> list = new ArrayList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user