Fix typo in InetSocketAddress.getAddress() documentation

classic Classic list List threaded Threaded
2 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

Alan Bateman


On 03/01/2018 12:05, Christoph Dreis 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.
>
net-dev is the mailing list for the java.net code but what you have
looks fine.

-Alan