src/java.net.http/share/classes/java/net/http/WebSocket.java
branchhttp-client-branch
changeset 56341 10fcbe13cd19
parent 56340 245debd8398a
child 56393 a0f77ba61481
--- a/src/java.net.http/share/classes/java/net/http/WebSocket.java	Wed Mar 21 19:18:59 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/WebSocket.java	Thu Mar 22 09:48:27 2018 +0000
@@ -611,10 +611,10 @@
      * complete exceptionally with:
      * <ul>
      * <li> {@link IllegalArgumentException} -
-     *          if {@code statusCode} is illegal
+     *           if {@code statusCode} is illegal, or
+     *           if {@code reason} is illegal
      * <li> {@link IOException} -
-     *          if an I/O error occurs, or if the output is closed,
-     *          or {@code reason} is illegal
+     *          if an I/O error occurs, or if the output is closed
      * </ul>
      *
      * <p> Unless the {@code CompletableFuture} returned from this method