6978200: ServerSocket.toString include "port=0" in the returned String
authorchegar
Fri, 29 Jul 2011 10:55:21 -0700
changeset 10140 8ce74ce0de83
parent 10139 49e1c342c329
child 10141 664ba64d2472
6978200: ServerSocket.toString include "port=0" in the returned String Summary: Removal of "port=0" from ServerSocket.toString method Reviewed-by: alanb, chegar Contributed-by: kurchi.subhra.hazra@oracle.com
jdk/src/share/classes/java/net/ServerSocket.java
--- a/jdk/src/share/classes/java/net/ServerSocket.java	Fri Jul 29 16:45:37 2011 -0700
+++ b/jdk/src/share/classes/java/net/ServerSocket.java	Fri Jul 29 10:55:21 2011 -0700
@@ -716,7 +716,6 @@
         if (!isBound())
             return "ServerSocket[unbound]";
         return "ServerSocket[addr=" + impl.getInetAddress() +
-                ",port=" + impl.getPort() +
                 ",localport=" + impl.getLocalPort()  + "]";
     }