2004-03-20 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Sat, 20 Mar 2004 17:59:39 +0000 (17:59 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Sat, 20 Mar 2004 17:59:39 +0000 (17:59 +0000)
* java/net/InetAddress.java
(getLocalHostname): Added javadoc.

From-SVN: r79751

libjava/ChangeLog
libjava/java/net/InetAddress.java

index 0dee9bef5ade54756b66adbd5b8ec41e17977bae..119c586737c0e85219330b366d4d1be7a86f8e8f 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-20  Michael Koch  <konqueror@gmx.de>
+
+       * java/net/InetAddress.java
+       (getLocalHostname): Added javadoc.
+
 2004-03-19  Per Bothner  <per@bothner.com>
 
        * configure.in: FILE variable  overrides FLATFORM when linking
index e5f6ba3a8a14c5feb4b023f88663bffb8d3ebecf..126348b412eebbb433def273240ddd8cffe261f1 100644 (file)
@@ -1,5 +1,5 @@
 /* InetAddress.java -- Class to model an Internet address
-   Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2002, 2004  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -662,6 +662,14 @@ public class InetAddress implements Serializable
     return lookup (hostname, null, true);
   }
 
+  /**
+   * This native method looks up the hostname of the local machine
+   * we are on.  If the actual hostname cannot be determined, then the
+   * value "localhost" will be used.  This native method wrappers the
+   * "gethostname" function.
+   *
+   * @return The local hostname.
+   */
   private static native String getLocalHostname();
 
   /**