6978200: ServerSocket.toString include "port=0" in the returned String

Removal of "port=0" from ServerSocket.toString method

Reviewed-by: alanb, chegar
This commit is contained in:
Kurchi Subhra Hazra 2011-07-29 10:55:21 -07:00 committed by Chris Hegarty
parent abdf98fef8
commit 8083d3a875

View File

@ -716,7 +716,6 @@ class ServerSocket implements java.io.Closeable {
if (!isBound())
return "ServerSocket[unbound]";
return "ServerSocket[addr=" + impl.getInetAddress() +
",port=" + impl.getPort() +
",localport=" + impl.getLocalPort() + "]";
}