ambiguity: prefer non arrays (IDEA-97983)

This commit is contained in:
anna
2012-12-27 20:14:18 +01:00
parent ea55d12eb3
commit e33fb35daa
3 changed files with 48 additions and 11 deletions
@@ -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);
}
}