diff --git a/src/java.net.http/share/classes/java/net/http/WebSocket.java b/src/java.net.http/share/classes/java/net/http/WebSocket.java
index d76e48bee72..9833ba5edc4 100644
--- a/src/java.net.http/share/classes/java/net/http/WebSocket.java
+++ b/src/java.net.http/share/classes/java/net/http/WebSocket.java
@@ -197,9 +197,9 @@ public interface WebSocket {
*
{@link SecurityException} -
* if a security manager has been installed and it denies
* {@link java.net.URLPermission access} to {@code uri}.
- * Security checks
+ * Security checks
* contains more information relating to the security context
- * in which the the listener is invoked.
+ * in which the listener is invoked.
* {@link IllegalArgumentException} -
* if any of the arguments of this builder's methods are
* illegal