提交 e58cd544 编写于 作者: C chegar

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
上级 9a67d01c
......@@ -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() + "]";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册