SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0".
2003-08-01 Stephen Crawley <crawley@dstc.edu.au> * java/net/SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0". From-SVN: r70069
This commit is contained in:
parent
1ce4e666b2
commit
6e42faef6d
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-08-01 Stephen Crawley <crawley@dstc.edu.au>
|
||||
|
||||
* java/net/SocketImpl.java (toString): Display the remote address
|
||||
of an unconnected server socket as "0.0.0.0/0.0.0.0".
|
||||
|
||||
2003-08-01 Sascha Brawer <brawer@dandelis.ch>
|
||||
|
||||
* javax/swing/border/BevelBorder.java,
|
||||
|
|
|
@ -276,7 +276,8 @@ public abstract class SocketImpl implements SocketOptions
|
|||
*/
|
||||
public String toString()
|
||||
{
|
||||
return "[addr=" + address
|
||||
return "[addr=" + ((address == null) ? "0.0.0.0/0.0.0.0" :
|
||||
address.toString())
|
||||
+ ",port=" + port
|
||||
+ ",localport=" + localport + "]";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue