Skip to content

Commit

Permalink
remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Oct 12, 2023
1 parent 6432569 commit 23ce144
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ default public <O> CompletableFuture<ApiHttpResponse<O>> execute(final ApiHttpRe
return execute(request).thenApply(mapper);
}

/**
* @deprecated Will be removed with next major version. Methods will implement
* HttpRequestCommand so {@link #execute(HttpRequestCommand)} will replace this method.
* Custom implementations may need to implement HttpRequestCommand
* @param method command to be executed
* @return future of the response
* @param <O> response type
*/
@Deprecated
default public <O> CompletableFuture<ApiHttpResponse<O>> execute(final ClientRequestCommand<O> method) {
return method.execute(this);
}

default public <O> CompletableFuture<ApiHttpResponse<O>> execute(final HttpRequestCommand<O> method) {
return execute(method.createHttpRequest(), method.resultType());
}
Expand Down

0 comments on commit 23ce144

Please sign in to comment.