mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:33:59 +08:00
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
@ -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…
Reference in New Issue
Block a user