Fix typo in InetSocketAddress.getAddress() documentation

Chris Hegarty chris.hegarty at oracle.com
Thu Jan 4 21:13:59 UTC 2018


Brian,

Would you mind adding the below typo to another you are fixing under JDK-8193861 ( to reduce the overhead ).

Thanks,
-Chris.

> On 4 Jan 2018, at 15:35, Christoph Dreis <christoph.dreis at freenet.de> wrote:
> 
> Hi,
> 
> I just found a small typo in the documentation of
> InetSocketAddress.getAddress().
> 
> I'd be happy if the attached patch is reviewed and eventually sponsored.
> 
> Cheers,
> Christoph
> 
> ============== PATCH ================
> diff -r 3a52333a5e57
> src/java.base/share/classes/java/net/InetSocketAddress.java
> --- a/src/java.base/share/classes/java/net/InetSocketAddress.java       Tue
> Jan 02 16:35:04 2018 -0500
> +++ b/src/java.base/share/classes/java/net/InetSocketAddress.java       Wed
> Jan 03 12:55:26 2018 +0100
> @@ -317,10 +317,9 @@
>     }
> 
>     /**
> -     *
>      * Gets the {@code InetAddress}.
>      *
> -     * @return the InetAdress or {@code null} if it is unresolved.
> +     * @return the InetAddress or {@code null} if it is unresolved.
>      */
>     public final InetAddress getAddress() {
>         return holder.getAddress();
> 
> 



More information about the net-dev mailing list