# HG changeset patch # User chegar # Date 1397632611 -3600 # Node ID 225d01ae6469dcedf673fa0f2d0b0f380a1c3e19 # Parent ebade3f50c1f2762418817d7209d371918fbe7ac 8038821: Fix typos in java.net Reviewed-by: wetmore Contributed-by: Ivan Gerasimov , Chris Hegarty diff -r ebade3f50c1f -r 225d01ae6469 jdk/src/share/classes/java/net/DatagramSocket.java --- 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 @@ * *

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. * diff -r ebade3f50c1f -r 225d01ae6469 jdk/src/share/classes/java/net/HttpCookie.java --- 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() { diff -r ebade3f50c1f -r 225d01ae6469 jdk/src/share/classes/java/net/InetAddress.java --- 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 @@ *

*
networkaddress.cache.ttl
*
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. *

@@ -167,7 +167,7 @@ *

*
networkaddress.cache.negative.ttl (default: 10)
*
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. *

diff -r ebade3f50c1f -r 225d01ae6469 jdk/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java --- 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 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);