remove local redundant unchecked suppress inspection - replace with existing global one (IDEA-66039)

This commit is contained in:
anna
2011-03-09 20:50:09 +01:00
parent c61a0360a7
commit e1fc66adaa
20 changed files with 139 additions and 265 deletions

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.ArrayList;
public class Test {

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.ArrayList;
public class Test {
@@ -7,7 +7,7 @@ public class Test {
}
void foo() {
//noinspection blah-blah-toolid
// noinspection blah-blah-toolid
foo(new ArrayList<String>());
}
}

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
public class Test {

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
public class Test {

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
public class Test {

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
@SuppressWarnings({"bla-blah-toolid"})

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.ArrayList;
public class Test {
@@ -6,8 +6,8 @@ public class Test {
static <T> void foo(T... t){
}
void foo() {
//noinspection unc<caret>hecked
void fo<caret>o() {
//noinspection unchecked
foo(new ArrayList<String>());
}
}

View File

@@ -1,11 +1,11 @@
// "Remove redundant "unchecked" suppression" "false"
// "Remove 'unchecked' suppression" "false"
@SuppressWarnings({"unc<caret>hecked", "bla-blah-toolid"})
@SuppressWarnings({"unchecked", "bla-blah-toolid"})
public enum Planet {
MERCURY(),
VENUS();
<T> Planet(T... ts) {
<T> Plan<caret>et(T... ts) {
}
}

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.ArrayList;
public class Test {
@@ -6,8 +6,8 @@ public class Test {
static <T> void foo(T... t){
}
void foo() {
//noinspection unc<caret>hecked,blah-blah-toolid
void f<caret>oo() {
//noinspection unchecked,blah-blah-toolid
foo(new ArrayList<String>());
}
}

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "false"
// "Remove 'unchecked' suppression" "false"
import java.util.*;
public class Test {
@@ -7,9 +7,13 @@ public class Test {
return null;
}
void foo() {
//noinspection unc<caret>hecked
foo(new ArrayList<String>()).addAll(Arrays.asList(new ArrayList<String>()));
static <T> List<T> foo1(T... t){
return null;
}
void fo<caret>o() {
//noinspection unchecked
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>()));
}
}

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
public class Test {
@@ -7,8 +7,8 @@ public class Test {
return null;
}
void foo() {
//noinspection unc<caret>hecked
void fo<caret>o() {
//noinspection unchecked
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}

View File

@@ -1,4 +1,4 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
public class Test {
@@ -7,8 +7,8 @@ public class Test {
return null;
}
@SuppressWarnings("unc<caret>hecked")
void foo() {
@SuppressWarnings("unchecked")
void fo<caret>o() {
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}

View File

@@ -1,8 +1,8 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
@SuppressWarnings("unc<caret>hecked")
public class Test {
@SuppressWarnings("unchecked")
public class Te<caret>st {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;

View File

@@ -1,15 +1,19 @@
// "Remove redundant "unchecked" suppression" "false"
// "Remove 'unchecked' suppression" "false"
import java.util.*;
@SuppressWarnings("unc<caret>hecked")
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;
}
static <T> List<T> foo1(T... t){
return null;
}
@SuppressWarnings("unchecked")
void foo() {
foo(new ArrayList<String>()).addAll(Arrays.asList(new ArrayList<String>);
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>);
}
}

View File

@@ -1,8 +1,8 @@
// "Remove redundant "unchecked" suppression" "false"
// "Remove 'unchecked' suppression" "false"
import java.util.*;
@SuppressWarnings("AL<caret>L")
public class Test {
@SuppressWarnings("ALL")
public class Te<caret>st {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;

View File

@@ -1,8 +1,8 @@
// "Remove redundant "unchecked" suppression" "true"
// "Remove 'unchecked' suppression" "true"
import java.util.*;
@SuppressWarnings({"unc<caret>hecked", "bla-blah-toolid"})
public class Test {
@SuppressWarnings({"unchecked", "bla-blah-toolid"})
public class Tes<caret>t {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;