RFR [9] 8038821: Fix typo; consructed to constructed

Ivan Gerasimov ivan.gerasimov at oracle.com
Mon Mar 31 14:48:51 UTC 2014


Hi Chris!

Would it be good to include a couple more typo fixes in this change?

diff --git a/src/share/classes/java/net/DatagramSocket.java 
b/src/share/classes/java/net/DatagramSocket.java
--- a/src/share/classes/java/net/DatagramSocket.java
+++ b/src/share/classes/java/net/DatagramSocket.java
@@ -445,7 +445,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.
       *
diff --git a/src/share/classes/java/net/InetAddress.java 
b/src/share/classes/java/net/InetAddress.java
--- a/src/share/classes/java/net/InetAddress.java
+++ b/src/share/classes/java/net/InetAddress.java
@@ -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>

Sincerely yours,
Ivan


On 31.03.2014 17:42, Chris Hegarty wrote:
> Trivial typo fix.
>
> diff --git a/src/share/classes/java/net/HttpCookie.java 
> b/src/share/classes/java/net/HttpCookie.java
> --- a/src/share/classes/java/net/HttpCookie.java
> +++ b/src/share/classes/java/net/HttpCookie.java
> @@ -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 --git a/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java 
> b/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java
> --- a/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java
> +++ b/src/share/classes/sun/misc/JavaNetHttpCookieAccess.java
> @@ -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);
>
>



More information about the net-dev mailing list