/[classpath]/classpath/java/net/InetAddress.java
ViewVC logotype

Diff of /classpath/java/net/InetAddress.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31.2.3 by gnu_andrew, Sun Jan 16 15:15:12 2005 UTC revision 1.31.2.4 by gnu_andrew, Sun Mar 13 14:38:41 2005 UTC
# Line 1  Line 1 
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    
# Line 523  public class InetAddress implements Seri Line 523  public class InetAddress implements Seri
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    

Legend:
Removed from v.1.31.2.3  
changed lines
  Added in v.1.31.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26