SocketImpl.java (toString): Don't explicitly call toString() on possible null address.

* java/net/SocketImpl.java (toString): Don't explicitly call
       toString() on possible null address.

From-SVN: r61404
This commit is contained in:
Mark Wielaard 2003-01-16 21:37:56 +00:00 committed by Mark Wielaard
parent 8fbc5ae723
commit 3afcbc9b34
2 changed files with 8 additions and 2 deletions

View file

@ -271,8 +271,9 @@ public abstract class SocketImpl implements SocketOptions
*/
public String toString()
{
return "[addr=" + address.toString() + ",port=" + Integer.toString(port)
+ ",localport=" + Integer.toString(localport) + "]";
return "[addr=" + address
+ ",port=" + port
+ ",localport=" + localport + "]";
}
/**