mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 20:50:54 +07:00
20 lines
423 B
Java
20 lines
423 B
Java
// "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({"unu<caret>sed"})
|
|
void foo() {
|
|
asList(new ArrayList<String>());
|
|
List<Object> l ;
|
|
ArrayList strings = new ArrayList<String>();
|
|
l = strings;
|
|
}
|
|
}
|