helper icon indicating copy to clipboard operation
helper copied to clipboard

HelperPromise Java 17

Open StealWonders opened this issue 3 years ago • 0 comments

src\main\java\me\lucko\helper\promise\HelperPromise.java:92: error: method addCallback in class Futures cannot be applied to given types;
            Futures.addCallback(fut, new FutureCallback<U>() {
                   ^
  required: ListenableFuture<V>,FutureCallback<? super V>,Executor
  found:    ListenableFuture<U>,<anonymous FutureCallback<U>>
  reason: cannot infer type-variable(s) V
    (actual and formal argument lists differ in length)
  where V,U are type-variables:
    V extends Object declared in method <V>addCallback(ListenableFuture<V>,FutureCallback<? super V>,Executor)
    U extends Object declared in method <U>wrapFuture(Future<U>)

StealWonders avatar Jan 31 '22 10:01 StealWonders