/[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.37 by mkoch, Mon Jan 3 11:13:44 2005 UTC revision 1.38 by mkoch, Fri Feb 25 09:55:13 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.37  
changed lines
  Added in v.1.38

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