# HG changeset patch # User xuelei # Date 1501021194 0 # Node ID c864a5791b3a8402bcb4cc829ccaafcaf4ad845d # Parent 26225f0340599e01911c835f8d67eb9921c8e703 8184316: Typo in javax.net.ssl.SSLServerSocket class documentation Reviewed-by: mullan diff -r 26225f034059 -r c864a5791b3a jdk/src/java.base/share/classes/javax/net/ssl/SSLServerSocket.java --- a/jdk/src/java.base/share/classes/javax/net/ssl/SSLServerSocket.java Mon Jul 24 16:18:53 2017 -0700 +++ b/jdk/src/java.base/share/classes/javax/net/ssl/SSLServerSocket.java Tue Jul 25 22:19:54 2017 +0000 @@ -31,17 +31,17 @@ /** - * This class extends ServerSockets and + * This class extends ServerSocket and * provides secure server sockets using protocols such as the Secure * Sockets Layer (SSL) or Transport Layer Security (TLS) protocols. *

- * Instances of this class are generally created using a + * Instances of this class are generally created using an * SSLServerSocketFactory. The primary function - * of SSLServerSockets + * of an SSLServerSocket * is to create SSLSockets by accepting * connections. *

- * SSLServerSockets contain several pieces of state data + * An SSLServerSocket contains several pieces of state data * which are inherited by the SSLSocket at * socket creation. These include the enabled cipher * suites and protocols, whether client diff -r 26225f034059 -r c864a5791b3a jdk/src/java.base/share/classes/javax/net/ssl/SSLSocket.java --- a/jdk/src/java.base/share/classes/javax/net/ssl/SSLSocket.java Mon Jul 24 16:18:53 2017 -0700 +++ b/jdk/src/java.base/share/classes/javax/net/ssl/SSLSocket.java Tue Jul 25 22:19:54 2017 +0000 @@ -32,8 +32,8 @@ import java.util.function.BiFunction; /** - * This class extends Sockets and provides secure - * socket using protocols such as the "Secure + * This class extends Socket and provides secure + * sockets using protocols such as the "Secure * Sockets Layer" (SSL) or IETF "Transport Layer Security" (TLS) protocols. *

* Such sockets are normal stream sockets, but they @@ -105,7 +105,7 @@ * non-private (unencrypted) communications will such a ciphersuite be * selected. * - *

When SSLSockets are first created, no handshaking + *

When an SSLSocket is first created, no handshaking * is done so that applications may first set their communication * preferences: what cipher suites to use, whether the socket should be * in client or server mode, etc. @@ -118,7 +118,7 @@ * objects are passed to HandshakeCompletedListener instances, * which are registered by users of this API. * - * SSLSockets are created by SSLSocketFactorys, + * An SSLSocket is created by SSLSocketFactory, * or by accepting a connection from a * SSLServerSocket. *