mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
new overload resolution: don't treat array type of functional interfaces as functional interface (IDEA-148726)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
private static <T> void test(Class<T> cls, Runnable... objs) {
|
||||
System.out.println(cls);
|
||||
System.out.println(objs);
|
||||
}
|
||||
|
||||
private static <K> void <warning descr="Private method 'test(K, java.lang.Runnable...)' is never used">test</warning>(K obj, Runnable... objs) {
|
||||
System.out.println(obj);
|
||||
System.out.println(objs);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
test(String.class, new Runnable[1]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user