src/java.net.http/share/classes/java/net/http/WebSocket.java
branchhttp-client-branch
changeset 56263 4933a477d628
parent 56156 336393c75a93
child 56318 2a96e88888b2
--- a/src/java.net.http/share/classes/java/net/http/WebSocket.java	Wed Mar 07 15:39:25 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/WebSocket.java	Wed Mar 07 17:16:28 2018 +0000
@@ -508,8 +508,6 @@
      * <p> A {@code CompletableFuture} returned from this method can
      * complete exceptionally with:
      * <ul>
-     * <li> {@link IllegalArgumentException} -
-     *          if {@code message} is a malformed UTF-16 sequence
      * <li> {@link IllegalStateException} -
      *          if the previous Text or Binary message has not been sent yet
      *          or if a previous Binary message has been sent with
@@ -518,9 +516,9 @@
      *          if an I/O error occurs
      * </ul>
      *
-     * @implNote If a partial UTF-16 sequence is passed to this method, a
-     * {@code CompletableFuture} returned will complete exceptionally with
-     * {@code IOException}.
+     * @implNote If a partial or malformed UTF-16 sequence is passed to this
+     * method, a {@code CompletableFuture} returned will complete exceptionally
+     * with {@code IOException}.
      *
      * @param message
      *         the message
@@ -632,7 +630,7 @@
      * complete exceptionally with:
      * <ul>
      * <li> {@link IllegalArgumentException} -
-     *          if {@code statusCode} or {@code reason} are illegal
+     *          if {@code statusCode} is illegal
      * <li> {@link IOException} -
      *          if an I/O error occurs
      * </ul>