mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
report redundant suppressions on line with suppression or on corresponding member if member annotated (IDEA-145472)
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@ public class Test {
|
||||
static <T> void foo(T... t){
|
||||
}
|
||||
|
||||
void fo<caret>o() {
|
||||
//noinspection unchecked
|
||||
void foo() {
|
||||
//noinspec<caret>tion unchecked
|
||||
foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ public class SampleSafeVarargs {
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
void foo() {
|
||||
void fo<caret>o() {
|
||||
asList(new ArrayList<String>());
|
||||
List<Object> l ;
|
||||
ArrayList strings = new ArrayList<String>();
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ public class Test {
|
||||
static <T> void foo(T... t){
|
||||
}
|
||||
|
||||
void f<caret>oo() {
|
||||
//noinspection unchecked,blah-blah-toolid
|
||||
void foo() {
|
||||
//noinsp<caret>ection unchecked,blah-blah-toolid
|
||||
foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ public class Test {
|
||||
return null;
|
||||
}
|
||||
|
||||
void fo<caret>o() {
|
||||
//noinspection unchecked
|
||||
void foo() {
|
||||
//noinspe<caret>ction unchecked
|
||||
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>()));
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ public class Test {
|
||||
return null;
|
||||
}
|
||||
|
||||
void fo<caret>o() {
|
||||
//noinspection unchecked
|
||||
void foo() {
|
||||
//noinspe<caret>ction unchecked
|
||||
List<ArrayList<String>> list = foo(new ArrayList<String>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user