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:
parent
8fbc5ae723
commit
3afcbc9b34
@ -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
|
||||
|
@ -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 + "]";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user