mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
Fixes IDEA-355152 Good code red when static import collides with static interface method from the hierarchy GitOrigin-RevId: f6f68cc372928d98bb1f66f2c3ddfaaf63d69702
28 lines
462 B
Java
28 lines
462 B
Java
import static java.util.Arrays.copyOf;
|
|
|
|
import java.util.AbstractList;
|
|
|
|
// IDEA-355152
|
|
class Main<T> extends AbstractList<T> {
|
|
|
|
@Override
|
|
public T get(int index) {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public int size() {
|
|
return 0;
|
|
}
|
|
|
|
protected static class Node {
|
|
protected void copy() {
|
|
int[] ary = new int[]{1,2,3,4,5};
|
|
copyOf(ary, 6);
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Main<String> main = new Main<>();
|
|
}
|
|
} |