1 |
/* InetAddress.java -- Class to model an Internet address |
/* InetAddress.java -- Class to model an Internet address |
2 |
Copyright (C) 1998, 1999, 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
523 |
public String toString() |
public String toString() |
524 |
{ |
{ |
525 |
String addr = getHostAddress(); |
String addr = getHostAddress(); |
526 |
String host = (hostName != null) ? hostName : addr; |
String host = (hostName != null) ? hostName : ""; |
527 |
return host + "/" + addr; |
return host + "/" + addr; |
528 |
} |
} |
529 |
|
|