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
2 changed files with 8 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue