http-client-branch: minor HttpClient.send exception correction http-client-branch
authorchegar
Wed, 21 Mar 2018 12:42:19 +0000
branchhttp-client-branch
changeset 56330 65a4ac71b2bf
parent 56329 254f6c8277f9
child 56331 95f6f846ee8e
http-client-branch: minor HttpClient.send exception correction
src/java.net.http/share/classes/java/net/http/HttpClient.java
--- a/src/java.net.http/share/classes/java/net/http/HttpClient.java	Wed Mar 21 12:38:23 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/HttpClient.java	Wed Mar 21 12:42:19 2018 +0000
@@ -535,7 +535,6 @@
      * <p> The returned completable future completes exceptionally with:
      * <ul>
      * <li>{@link IOException} - if an I/O error occurs when sending or receiving</li>
-     * <li>{@link IllegalArgumentException} - if the request method is not supported</li>
      * <li>{@link SecurityException} - If a security manager has been installed
      *          and it denies {@link java.net.URLPermission access} to the
      *          URL in the given request, or proxy if one is configured.
@@ -548,6 +547,7 @@
      * @param responseBodyHandler the response body handler
      * @param pushPromiseHandler push promise handler, may be null
      * @return a {@code CompletableFuture<HttpResponse<T>>}
+     * @throws IllegalArgumentException if the request method is not supported
      */
     public abstract <T> CompletableFuture<HttpResponse<T>>
     sendAsync(HttpRequest request,