Commit 52b26143 by Sven de Marothy Committed by Michael Koch

2005-04-26 Sven de Marothy <sven@physto.se>

	* java/net/InetAddress.java
	(toString): Don't print empty hostnames.

From-SVN: r98793
parent 31f0451e
2005-04-26 Sven de Marothy <sven@physto.se>
* java/net/InetAddress.java
(toString): Don't print empty hostnames.
2005-04-26 Luca Barbieri <luca.barbieri@gmail.com>
PR libgcj/21136:
......
......@@ -495,7 +495,7 @@ public class InetAddress implements Serializable
public String toString()
{
String addr = getHostAddress();
String host = (hostName != null) ? hostName : addr;
String host = (hostName != null) ? hostName : "";
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