8038821: Fix typos in java.net
Reviewed-by: wetmore
Contributed-by: Ivan Gerasimov <ivan.gerasimov@oracle.com>, Chris Hegarty <chris.hegarty@oracle.com>
--- a/jdk/src/share/classes/java/net/DatagramSocket.java Wed Apr 16 10:39:36 2014 +0800
+++ b/jdk/src/share/classes/java/net/DatagramSocket.java Wed Apr 16 08:16:51 2014 +0100
@@ -448,7 +448,7 @@
*
* <p> If given an {@link InetSocketAddress InetSocketAddress}, this method
* behaves as if invoking {@link #connect(InetAddress,int) connect(InetAddress,int)}
- * with the the given socket addresses IP address and port number.
+ * with the given socket addresses IP address and port number.
*
* @param addr The remote address.
*
--- a/jdk/src/share/classes/java/net/HttpCookie.java Wed Apr 16 10:39:36 2014 +0800
+++ b/jdk/src/share/classes/java/net/HttpCookie.java Wed Apr 16 08:16:51 2014 +0100
@@ -74,7 +74,7 @@
private boolean httpOnly; // HttpOnly ... i.e. not accessible to scripts
private int version = 1; // Version=1 ... RFC 2965 style
- // The original header this cookie was consructed from, if it was
+ // The original header this cookie was constructed from, if it was
// constructed by parsing a header, otherwise null.
private final String header;
@@ -985,7 +985,7 @@
}
/*
- * Returns the original header this cookie was consructed from, if it was
+ * Returns the original header this cookie was constructed from, if it was
* constructed by parsing a header, otherwise null.
*/
private String header() {
--- a/jdk/src/share/classes/java/net/InetAddress.java Wed Apr 16 10:39:36 2014 +0800
+++ b/jdk/src/share/classes/java/net/InetAddress.java Wed Apr 16 08:16:51 2014 +0100
@@ -159,7 +159,7 @@
* <dl>
* <dt><b>networkaddress.cache.ttl</b></dt>
* <dd>Indicates the caching policy for successful name lookups from
- * the name service. The value is specified as as integer to indicate
+ * the name service. The value is specified as an integer to indicate
* the number of seconds to cache the successful lookup. The default
* setting is to cache for an implementation specific period of time.
* <p>
@@ -167,7 +167,7 @@
* </dd>
* <dt><b>networkaddress.cache.negative.ttl</b> (default: 10)</dt>
* <dd>Indicates the caching policy for un-successful name lookups
- * from the name service. The value is specified as as integer to
+ * from the name service. The value is specified as an integer to
* indicate the number of seconds to cache the failure for
* un-successful lookups.
* <p>
--- a/jdk/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java Wed Apr 16 10:39:36 2014 +0800
+++ b/jdk/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java Wed Apr 16 08:16:51 2014 +0100
@@ -36,7 +36,7 @@
public List<HttpCookie> parse(String header);
/*
- * Returns the original header this cookie was consructed from, if it was
+ * Returns the original header this cookie was constructed from, if it was
* constructed by parsing a header, otherwise null.
*/
public String header(HttpCookie cookie);