report redundant suppressions on line with suppression or on corresponding member if member annotated (IDEA-145472)

This commit is contained in:
Anna Kozlova
2015-09-24 13:09:22 +03:00
parent eb6981dfed
commit dc5e1732f7
8 changed files with 17 additions and 15 deletions
@@ -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>());
}
}
@@ -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>();
@@ -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>());
}
}
@@ -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>()));
}
}
@@ -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>());
}
}