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

@ -1,3 +1,8 @@
2003-01-16 Mark Wielaard <mark@klomp.org>
* java/net/SocketImpl.java (toString): Don't explicitly call
toString() on possible null address.
2003-01-16 Michael Koch <konqueror@gmx.de>
* java/net/MulticastSocket.java

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 + "]";
}
/**