public class X<T> implements Future<T> {
public void addListener(Consumer<? extends Future<? super T>> listener) {
listener.accept(this);
}
}
It complains that the capture type cannot be applied
public class X<T> implements Future<T> {
public void addListener(Consumer<? extends Future<? super T>> listener) {
listener.accept(this);
}
}
It complains that the capture type cannot be applied