--- old/src/java.base/share/classes/java/net/CookieManager.java 2018-11-12 15:48:08.000000000 +0000 +++ new/src/java.base/share/classes/java/net/CookieManager.java 2018-11-12 15:48:08.000000000 +0000 @@ -62,7 +62,7 @@ *
The textual representation of IPv6 addresses as described above can be * extended to specify IPv6 scoped addresses. This extension to the basic - * addressing architecture is described in [draft-ietf-ipngwg-scoping-arch-04.txt]. + * addressing architecture is described in + * + * RFC 4007: IPv6 Scoped Address Architecture. * *
Because link-local and site-local addresses are non-global, it is possible * that different hosts may have the same destination address and may be @@ -507,7 +509,7 @@ /* check the two Ipv6 addresses and return false if they are both * non global address types, but not the same. - * (ie. one is sitelocal and the other linklocal) + * (i.e. one is site-local and the other link-local) * return true otherwise. */ @@ -683,7 +685,7 @@ /** * Utility routine to check if the InetAddress is a wildcard address. * - * @return a {@code boolean} indicating if the Inetaddress is + * @return a {@code boolean} indicating if the InetAddress is * a wildcard address. */ @Override @@ -821,7 +823,7 @@ /** * Returns the scoped interface, if this instance was created with - * with a scoped interface. + * a scoped interface. * * @return the scoped interface, or null if not set. * @since 1.5 --- old/src/java.base/share/classes/java/net/InetAddress.java 2018-11-12 15:48:19.000000000 +0000 +++ new/src/java.base/share/classes/java/net/InetAddress.java 2018-11-12 15:48:19.000000000 +0000 @@ -377,7 +377,7 @@ /** * Utility routine to check if the InetAddress is a wildcard address. - * @return a {@code boolean} indicating if the Inetaddress is + * @return a {@code boolean} indicating if the InetAddress is * a wildcard address. * @since 1.4 */ @@ -1022,7 +1022,7 @@ *
Lookup a host mapping by name. Retrieve the IP addresses * associated with a host. * - *
Search the configured hosts file for the addresses assocaited with + *
Search the configured hosts file for the addresses associated
* with the specified host name.
*
* @param host the specified hostname
@@ -1038,7 +1038,7 @@
byte addr[] = new byte[4];
ArrayList
* The value of {@link SocketOptions#SO_RCVBUF SO_RCVBUF} is used both to
* set the size of the internal socket receive buffer, and to set the size
- * of the TCP receive window that is advertized to the remote peer.
+ * of the TCP receive window that is advertised to the remote peer.
*
* It is possible to change the value subsequently, by calling
* {@link Socket#setReceiveBufferSize(int)}. However, if the application
--- old/src/java.base/share/classes/java/net/Socket.java 2018-11-12 15:48:30.000000000 +0000
+++ new/src/java.base/share/classes/java/net/Socket.java 2018-11-12 15:48:29.000000000 +0000
@@ -1237,7 +1237,7 @@
* should call {@link #getReceiveBufferSize()}.
*
* The value of {@link SocketOptions#SO_RCVBUF SO_RCVBUF} is also used
- * to set the TCP receive window that is advertized to the remote peer.
+ * to set the TCP receive window that is advertised to the remote peer.
* Generally, the window size can be modified at any time when a socket is
* connected. However, if a receive window larger than 64K is required then
* this must be requested before the socket is connected to the
@@ -1578,10 +1578,10 @@
*
* Note: Closing a socket doesn't clear its connection state, which means
* this method will return {@code true} for a closed socket
- * (see {@link #isClosed()}) if it was successfuly connected prior
+ * (see {@link #isClosed()}) if it was successfully connected prior
* to being closed.
*
- * @return true if the socket was successfuly connected to a server
+ * @return true if the socket was successfully connected to a server
* @since 1.4
*/
public boolean isConnected() {
@@ -1594,10 +1594,10 @@
*
* Note: Closing a socket doesn't clear its binding state, which means
* this method will return {@code true} for a closed socket
- * (see {@link #isClosed()}) if it was successfuly bound prior
+ * (see {@link #isClosed()}) if it was successfully bound prior
* to being closed.
*
- * @return true if the socket was successfuly bound to an address
+ * @return true if the socket was successfully bound to an address
* @since 1.4
* @see #bind
*/
--- old/src/java.base/share/classes/java/net/SocketOutputStream.java 2018-11-12 15:48:31.000000000 +0000
+++ new/src/java.base/share/classes/java/net/SocketOutputStream.java 2018-11-12 15:48:31.000000000 +0000
@@ -51,7 +51,7 @@
* Creates a new SocketOutputStream. Can only be called
* by a Socket. This method needs to hang on to the owner Socket so
* that the fd will not be closed.
- * @param impl the socket output stream inplemented
+ * @param impl the socket output stream implemented
*/
SocketOutputStream(AbstractPlainSocketImpl impl) throws IOException {
super(impl.getFileDescriptor());
--- old/src/java.base/share/classes/java/net/SocketPermission.java 2018-11-12 15:48:33.000000000 +0000
+++ new/src/java.base/share/classes/java/net/SocketPermission.java 2018-11-12 15:48:33.000000000 +0000
@@ -283,7 +283,7 @@
* nr = new SocketPermission("204.160.241.0:1024-65535", "connect");
*
*
- * @param host the hostname or IPaddress of the computer, optionally
+ * @param host the hostname or IP address of the computer, optionally
* including a colon followed by a port or port range.
* @param action the action string.
*/
@@ -317,7 +317,7 @@
if ((ind = host.indexOf(':')) != host.lastIndexOf(':')) {
/* More than one ":", meaning IPv6 address is not
* in RFC 2732 format;
- * We will rectify user errors for all unambiguious cases
+ * We will rectify user errors for all non-ambiguous cases
*/
StringTokenizer st = new StringTokenizer(host, ":");
int tokens = st.countTokens();
@@ -961,7 +961,7 @@
return (that.cname.endsWith(this.cname));
}
- // comapare IP addresses
+ // compare IP addresses
if (this.addresses == null) {
this.getIP();
}
--- old/src/java.base/share/classes/java/net/SocksSocketImpl.java 2018-11-12 15:48:35.000000000 +0000
+++ new/src/java.base/share/classes/java/net/SocksSocketImpl.java 2018-11-12 15:48:34.000000000 +0000
@@ -51,7 +51,7 @@
private Socket cmdsock = null;
private InputStream cmdIn = null;
private OutputStream cmdOut = null;
- /* true if the Proxy has been set programatically */
+ /* true if the Proxy has been set programmatically */
private boolean applicationSetProxy; /* false */
@@ -145,7 +145,7 @@
}
/**
- * Provides the authentication machanism required by the proxy.
+ * Provides the authentication mechanism required by the proxy.
*/
private boolean authenticate(byte method, InputStream in,
BufferedOutputStream out) throws IOException {
@@ -158,7 +158,7 @@
// No Authentication required. We're done then!
if (method == NO_AUTH)
return true;
- /**
+ /*
* User/Password authentication. Try, in that order :
* - The application provided Authenticator, if any
* - the user.name & no password (backward compatibility behavior).
@@ -377,7 +377,7 @@
URI uri;
// Use getHostString() to avoid reverse lookups
String host = epoint.getHostString();
- // IPv6 litteral?
+ // IPv6 literal?
if (epoint.getAddress() instanceof Inet6Address &&
(!host.startsWith("[")) && (host.indexOf(':') >= 0)) {
host = "[" + host + "]";
@@ -692,7 +692,7 @@
URI uri;
// Use getHostString() to avoid reverse lookups
String host = saddr.getHostString();
- // IPv6 litteral?
+ // IPv6 literal?
if (saddr.getAddress() instanceof Inet6Address &&
(!host.startsWith("[")) && (host.indexOf(':') >= 0)) {
host = "[" + host + "]";
--- old/src/java.base/share/classes/java/net/URL.java 2018-11-12 15:48:36.000000000 +0000
+++ new/src/java.base/share/classes/java/net/URL.java 2018-11-12 15:48:36.000000000 +0000
@@ -1009,7 +1009,7 @@
* can not be converted to a URI.
*
* @exception URISyntaxException if this URL is not formatted strictly according to
- * to RFC2396 and cannot be converted to a URI.
+ * RFC2396 and cannot be converted to a URI.
*
* @return a URI instance equivalent to this URL.
* @since 1.5
@@ -1054,7 +1054,7 @@
/**
* Same as {@link #openConnection()}, except that the connection will be
* made through the specified proxy; Protocol handlers that do not
- * support proxing will ignore the proxy parameter and make a
+ * support proxying will ignore the proxy parameter and make a
* normal connection.
*
* Invoking this method preempts the system's default
--- old/src/java.base/share/classes/java/net/URLEncoder.java 2018-11-12 15:48:37.000000000 +0000
+++ new/src/java.base/share/classes/java/net/URLEncoder.java 2018-11-12 15:48:37.000000000 +0000
@@ -109,7 +109,7 @@
* list. It is also noteworthy that this is consistent with
* O'Reilly's "HTML: The Definitive Guide" (page 164).
*
- * As a last note, Intenet Explorer does not encode the "@"
+ * As a last note, Internet Explorer does not encode the "@"
* character which is clearly not unreserved according to the
* RFC. We are being consistent with the RFC in this matter,
* as is Netscape.
--- old/src/java.base/share/classes/java/net/URLStreamHandler.java 2018-11-12 15:48:39.000000000 +0000
+++ new/src/java.base/share/classes/java/net/URLStreamHandler.java 2018-11-12 15:48:38.000000000 +0000
@@ -250,15 +250,15 @@
} else if (path != null && path.length() > 0) {
isRelPath = true;
int ind = path.lastIndexOf('/');
- String seperator = "";
+ String separator = "";
if (ind == -1 && authority != null)
- seperator = "/";
- path = path.substring(0, ind + 1) + seperator +
+ separator = "/";
+ path = path.substring(0, ind + 1) + separator +
spec.substring(start, limit);
} else {
- String seperator = (authority != null) ? "/" : "";
- path = seperator + spec.substring(start, limit);
+ String separator = (authority != null) ? "/" : "";
+ path = separator + spec.substring(start, limit);
}
} else if (queryOnly && path != null) {
int ind = path.lastIndexOf('/');
@@ -314,7 +314,7 @@
/**
* Returns the default port for a URL parsed by this handler. This method
- * is meant to be overidden by handlers with default port numbers.
+ * is meant to be overridden by handlers with default port numbers.
* @return the default port for a {@code URL} parsed by this handler.
* @since 1.3
*/
@@ -323,7 +323,7 @@
}
/**
- * Provides the default equals calculation. May be overidden by handlers
+ * Provides the default equals calculation. May be overridden by handlers
* for other protocols that have different requirements for equals().
* This method requires that none of its arguments is null. This is
* guaranteed by the fact that it is only called by java.net.URL class.
@@ -342,7 +342,7 @@
}
/**
- * Provides the default hash calculation. May be overidden by handlers for
+ * Provides the default hash calculation. May be overridden by handlers for
* other protocols that have different requirements for hashCode
* calculation.
* @param u a URL object
--- old/src/java.base/share/classes/java/net/spi/URLStreamHandlerProvider.java 2018-11-12 15:48:40.000000000 +0000
+++ new/src/java.base/share/classes/java/net/spi/URLStreamHandlerProvider.java 2018-11-12 15:48:40.000000000 +0000
@@ -30,7 +30,7 @@
/**
* URL stream handler service-provider class.
*
- * A URL stream handler provider is a concrete subclass of this class that
+ * A URL stream handler provider is a concrete subclass of this class that
* has a zero-argument constructor. URL stream handler providers may be
* installed in an instance of the Java platform by adding them to the
* application class path.
--- old/src/java.base/share/classes/java/nio/channels/MulticastChannel.java 2018-11-12 15:48:42.000000000 +0000
+++ new/src/java.base/share/classes/java/nio/channels/MulticastChannel.java 2018-11-12 15:48:41.000000000 +0000
@@ -177,7 +177,7 @@
* @throws SecurityException
* If a security manager is set, and its
* {@link SecurityManager#checkMulticast(InetAddress) checkMulticast}
- * method denies access to the multiast group
+ * method denies access to the multicast group
*/
MembershipKey join(InetAddress group, NetworkInterface interf)
throws IOException;
@@ -226,7 +226,7 @@
* @throws SecurityException
* If a security manager is set, and its
* {@link SecurityManager#checkMulticast(InetAddress) checkMulticast}
- * method denies access to the multiast group
+ * method denies access to the multicast group
*/
MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source)
throws IOException;
--- old/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java 2018-11-12 15:48:43.000000000 +0000
+++ new/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java 2018-11-12 15:48:43.000000000 +0000
@@ -246,7 +246,7 @@
userAgent = agent;
// A set of net properties to control the use of authentication schemes
- // when proxing/tunneling.
+ // when proxying/tunneling.
String p = getNetProperty("jdk.http.auth.tunneling.disabledSchemes");
disabledTunnelingSchemes = schemesListToSet(p);
p = getNetProperty("jdk.http.auth.proxying.disabledSchemes");
--- old/src/java.base/windows/native/libnet/net_util_md.c 2018-11-12 15:48:45.000000000 +0000
+++ new/src/java.base/windows/native/libnet/net_util_md.c 2018-11-12 15:48:45.000000000 +0000
@@ -585,7 +585,7 @@
* The more complicated case is when the requested address is ::0 or 0.0.0.0.
*
* Two further cases:
- * 2. If the reqeusted port is 0 (ie. any port) then we try to bind in v4 space
+ * 2. If the requested port is 0 (ie. any port) then we try to bind in v4 space
* first with a wild-card port argument. We then try to bind in v6 space
* using the returned port number. If this fails, we repeat the process
* until a free port common to both spaces becomes available.
--- old/src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java 2018-11-12 15:48:47.000000000 +0000
+++ new/src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java 2018-11-12 15:48:46.000000000 +0000
@@ -211,7 +211,7 @@
// from the map. This should also take care of push promises.
// 2. For WebSocket the count is increased when creating a
// DetachedConnectionChannel for the socket, and decreased
- // when the the channel is closed.
+ // when the channel is closed.
// In addition, the HttpClient facade is passed to the WebSocket builder,
// (instead of the client implementation delegate).
// 3. For HTTP/1.1 the count is incremented before starting to parse the body
--- old/src/java.net.http/share/classes/jdk/internal/net/http/SocketTube.java 2018-11-12 15:48:48.000000000 +0000
+++ new/src/java.net.http/share/classes/jdk/internal/net/http/SocketTube.java 2018-11-12 15:48:48.000000000 +0000
@@ -322,7 +322,7 @@
// onNext is usually called from within a user / executor thread.
// Initial writing will be performed in that thread. If for some reason,
// not all the data can be written, a writeEvent will be registered, and
- // writing will resume in the the selector manager thread when the
+ // writing will resume in the selector manager thread when the
// writeEvent is fired.
//
// If this method is invoked in the selector manager thread (because of
--- old/src/java.net.http/share/classes/jdk/internal/net/http/Stream.java 2018-11-12 15:48:50.000000000 +0000
+++ new/src/java.net.http/share/classes/jdk/internal/net/http/Stream.java 2018-11-12 15:48:49.000000000 +0000
@@ -69,7 +69,7 @@
* RESPONSES
*
* Multiple responses can be received per request. Responses are queued up on
- * a LinkedList of CF