This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.net.InetAddress
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 20 Mar 2004 19:01:03 +0100
- Subject: FYI: Patch: java.net.InetAddress
Hi list,
I just commited a little merge for java.net.InetAddress. It simply adds
a javadoc for a private method.
Michael
2004-03-20 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
(getLocalHostname): Added javadoc.
Index: java/net/InetAddress.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/InetAddress.java,v
retrieving revision 1.27
diff -u -b -B -r1.27 InetAddress.java
--- java/net/InetAddress.java 16 Mar 2004 09:47:14 -0000 1.27
+++ java/net/InetAddress.java 20 Mar 2004 17:56:54 -0000
@@ -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 @@
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();
/**