mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
ambiguity: prefer non arrays (IDEA-97983)
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
class Test {
|
||||
public static void foo(int[] i1, int[] i2) {
|
||||
}
|
||||
|
||||
public static <T> void foo(T i1, T i2) {
|
||||
}
|
||||
|
||||
public static final void main(String[] args) throws Exception {
|
||||
int[] i = null;
|
||||
foo(i, i);
|
||||
}
|
||||
}
|
||||
class Test1 {
|
||||
public static void foo(int i1, int i2) {
|
||||
}
|
||||
|
||||
public static <T> void foo(T i1, T i2) {
|
||||
}
|
||||
|
||||
public static final void main(String[] args) throws Exception {
|
||||
int[] i = null;
|
||||
foo(i, i);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user