Fix typo in InetSocketAddress.getAddress() documentation

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix typo in InetSocketAddress.getAddress() documentation

Christoph Dreis
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();


Reply | Threaded
Open this post in threaded view
|

Re: Fix typo in InetSocketAddress.getAddress() documentation

Chris Hegarty
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 <[hidden email]> 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();
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Fix typo in InetSocketAddress.getAddress() documentation

Brian Burkhalter-2
Hi Chris,


Brian

On Jan 4, 2018, at 1:13 PM, Chris Hegarty <[hidden email]> wrote:

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

Reply | Threaded
Open this post in threaded view
|

Re: Fix typo in InetSocketAddress.getAddress() documentation

Chris Hegarty

> On 4 Jan 2018, at 21:29, Brian Burkhalter <[hidden email]> wrote:
>
> Hi Chris,
>
> Sure, no problem: http://cr.openjdk.java.net/~bpb/8193861/webrev.01/index.html

Reviewed. Thank you.

-Chris.