mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
redundant suppression: correct redundancy for tools with the same id
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// "Remove 'unchecked' suppression" "false"
|
||||
import java.util.*;
|
||||
|
||||
public class SampleSafeVarargs {
|
||||
|
||||
@SafeVarargs
|
||||
static <T> List<T> asList(T... tt) {
|
||||
System.out.println(tt);
|
||||
return null;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked"})
|
||||
void foo() {
|
||||
asList(new ArrayList<String>());
|
||||
List<Object> l ;
|
||||
ArrayList strings = new ArrayList<String>();
|
||||
l = strings;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user