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
--- 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() + "]";
}