Commit 0a56af0b by Michael Koch Committed by Michael Koch

2004-11-16 Michael Koch <konqueror@gmx.de>

	* java/net/InetAddress.java
	(toString): Merged from GNU classpath.

From-SVN: r90743
parent c1d36a89
2004-11-16 Michael Koch <konqueror@gmx.de> 2004-11-16 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(toString): Merged from GNU classpath.
2004-11-16 Michael Koch <konqueror@gmx.de>
* java/awt/geom/doc-files/Area-1.png, * java/awt/geom/doc-files/Area-1.png,
java/awt/geom/doc-files/Ellipse-1.png, java/awt/geom/doc-files/Ellipse-1.png,
java/awt/geom/doc-files/GeneralPath-1.png: java/awt/geom/doc-files/GeneralPath-1.png:
......
...@@ -488,9 +488,9 @@ public class InetAddress implements Serializable ...@@ -488,9 +488,9 @@ public class InetAddress implements Serializable
*/ */
public String toString() public String toString()
{ {
String address = getHostAddress(); String addr = getHostAddress();
String host = (hostName != null) ? hostName : address; String host = (hostName != null) ? hostName : addr;
return host + "/" + address; return host + "/" + addr;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment