mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
12 lines
386 B
Java
12 lines
386 B
Java
import java.util.List;
|
|
import java.util.ArrayList;
|
|
|
|
class Clazz {
|
|
void foo(List<? extends Number> l) {
|
|
boolean b = l.contains(<warning descr="'List<? extends Number>' may not contain objects of type 'String'">""</warning>); }
|
|
void bar() {
|
|
List<? extends Class<?>> l = new ArrayList<Class<?>>();
|
|
Class<?> o = String.class;
|
|
int i = l.indexOf(o);
|
|
}
|
|
} |