aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/net
diff options
context:
space:
mode:
authorJon Bratseth <jonbratseth@yahoo.com>2016-09-29 23:28:23 +0200
committerGitHub <noreply@github.com>2016-09-29 23:28:23 +0200
commit8aeed8886002cc6ad9261da57763766cad5ca7bf (patch)
tree814bc1c016c679e67306101e7b409ce7c4d2272b /vespajlib/src/main/java/com/yahoo/net
parent151d1cf4c09fc24c39d665a0818c64ff7bf80716 (diff)
parent0d27136b2912ce0dd6ca1c6cc5341ebeba71dc12 (diff)
Merge pull request #738 from yahoo/bratseth/support-document-api-in-applications
Bratseth/support document api in applications
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/net')
-rw-r--r--vespajlib/src/main/java/com/yahoo/net/HostName.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/net/HostName.java b/vespajlib/src/main/java/com/yahoo/net/HostName.java
index 9dff33e1f5f..4e791ca117a 100644
--- a/vespajlib/src/main/java/com/yahoo/net/HostName.java
+++ b/vespajlib/src/main/java/com/yahoo/net/HostName.java
@@ -15,12 +15,11 @@ public class HostName {
private static String myHost = null;
/**
- * Static method that returns the name of localhost using shell
- * command "hostname".
+ * Static method that returns the name of localhost using shell command "hostname".
+ * If you need a guaranteed resolvable name see LinuxINetAddress.
*
* @return the name of localhost.
* @throws RuntimeException if executing the command 'hostname' fails.
- * @see LinuxInetAddress if you need a host name/address which is reachable
*/
public static synchronized String getLocalhost() {
if (myHost == null) {
@@ -38,4 +37,5 @@ public class HostName {
}
return myHost;
}
+
}