Repository: commons-lang Updated Branches: refs/heads/master bd5cc81ed -> a9f350eb9
[LANG-1297] SystemUtils.getHostName() API. Javadoc. Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/a9f350eb Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/a9f350eb Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/a9f350eb Branch: refs/heads/master Commit: a9f350eb94eb9f165bb5dd13912fbde3eced2dbc Parents: bd5cc81 Author: Gary Gregory <ggreg...@apache.org> Authored: Wed Dec 14 14:28:40 2016 -0800 Committer: Gary Gregory <ggreg...@apache.org> Committed: Wed Dec 14 14:28:40 2016 -0800 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/SystemUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/a9f350eb/src/main/java/org/apache/commons/lang3/SystemUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index f850f65..8425c5c 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1494,7 +1494,11 @@ public class SystemUtils { } /** - * Gets the host name. + * Gets the host name from an environment variable. + * + * <p> + * If you want to know what the network stack says is the host name, you should use {@code InetAddress.getLocalHost().getHostName()}. + * </p> * * @return the host name. * @since 3.6