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