fix remove redundant suppress from javadoc tag (IDEA-205073)

This commit is contained in:
Anna.Kozlova
2019-01-08 16:16:05 +01:00
parent 753878ddc1
commit e0e26f5b95
5 changed files with 97 additions and 7 deletions
@@ -0,0 +1,18 @@
// "Remove 'unchecked' suppression" "true"
import java.util.*;
/**
*
* unrelated text
*/
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;
}
void foo() {
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}
@@ -0,0 +1,17 @@
// "Remove 'unchecked' suppression" "true"
import java.util.*;
/**
* @noinspection a1, b2
*/
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;
}
void foo() {
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}
@@ -0,0 +1,19 @@
// "Remove 'unchecked' suppression" "true"
import java.util.*;
/**
* @noinspection unch<caret>ecked
*
* unrelated text
*/
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;
}
void foo() {
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}
@@ -0,0 +1,17 @@
// "Remove 'unchecked' suppression" "true"
import java.util.*;
/**
* @noinspection a1,unch<caret>ecked, b2
*/
public class Test {
@SafeVarargs
static <T> List<T> foo(T... t){
return null;
}
void foo() {
List<ArrayList<String>> list = foo(new ArrayList<String>());
}
}