mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
do not create raw outer types during diamond inference
(cherry picked from commit c812622e14b3cb86ec18cedd406118789abb2e83)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import java.util.*;
|
||||
|
||||
class HT<O> {
|
||||
private Iterator<O> getIterator(int type, int count) {
|
||||
return new Enumerator<>(type, true);
|
||||
}
|
||||
|
||||
private class Enumerator<T> implements Iterator<T> {
|
||||
|
||||
public Enumerator(int type, boolean b) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public T next() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user