mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
most specific: do not start java 8 algorithm for provided type args (IDEA-125855)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
|
||||
private static <E> void <warning descr="Private method 'x(java.util.Collection<E>)' is never used">x</warning>(Collection<E> collection) {
|
||||
System.out.println(collection);
|
||||
}
|
||||
|
||||
private static <E> void x(List<E> list) {
|
||||
System.out.println(list);
|
||||
}
|
||||
|
||||
public static void main(List list) {
|
||||
Test.<Object[]>x(list);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user