Commit 3afcbc9b by Mark Wielaard Committed by Mark Wielaard

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
parent 8fbc5ae7
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> 2003-01-16 Michael Koch <konqueror@gmx.de>
* java/net/MulticastSocket.java * java/net/MulticastSocket.java
......
...@@ -271,8 +271,9 @@ public abstract class SocketImpl implements SocketOptions ...@@ -271,8 +271,9 @@ public abstract class SocketImpl implements SocketOptions
*/ */
public String toString() public String toString()
{ {
return "[addr=" + address.toString() + ",port=" + Integer.toString(port) return "[addr=" + address
+ ",localport=" + Integer.toString(localport) + "]"; + ",port=" + port
+ ",localport=" + localport + "]";
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment