Files
Tagir Valeev f3a9cdfdab [java-psi] Static interface method accessible through inheritance should not shadow static import
Fixes IDEA-355152 Good code red when static import collides with static interface method from the hierarchy

GitOrigin-RevId: f6f68cc372928d98bb1f66f2c3ddfaaf63d69702
2024-06-19 15:08:14 +00:00

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<>();
}
}