mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
remove local redundant unchecked suppress inspection - replace with existing global one (IDEA-66039)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant "unchecked" suppression" "true"
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant "unchecked" suppression" "true"
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant "unchecked" suppression" "true"
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant "unchecked" suppression" "true"
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Remove redundant "unchecked" suppression" "true"
|
||||
// "Remove 'unchecked' suppression" "true"
|
||||
import java.util.*;
|
||||
|
||||
@SuppressWarnings({"bla-blah-toolid"})
|
||||
|
||||
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user