--- 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