Skip to content

Commit 2d5eb72

Browse files
authored
Remove Request async default implementation (#490)
remove async default implementation
1 parent ad39fbd commit 2d5eb72

2 files changed

Lines changed: 1 addition & 45 deletions

File tree

src/main/java/com/auth0/net/Request.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,9 @@ public interface Request<T> {
2424
/**
2525
* Executes this request asynchronously.
2626
*
27-
* Note: This method was added after the interface was released in version 1.0.
28-
* It is defined as a default method for compatibility reasons.
29-
* From version 2.0 on, the method will be abstract and all implementations of this interface
30-
* will have to provide their own implementation.
31-
*
32-
* The default implementation throws an {@linkplain UnsupportedOperationException}.
33-
*
3427
* @return a {@linkplain CompletableFuture} representing the specified request.
3528
*/
36-
default CompletableFuture<Response<T>> executeAsync() {
37-
throw new UnsupportedOperationException("executeAsync");
38-
}
29+
CompletableFuture<Response<T>> executeAsync();
3930

4031
/**
4132
* Adds an HTTP header to the request

src/test/java/com/auth0/net/RequestTest.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)