Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EE574200C62 for ; Wed, 12 Apr 2017 00:06:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ECD8D160B9E; Tue, 11 Apr 2017 22:06:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 41EA4160B9B for ; Wed, 12 Apr 2017 00:06:59 +0200 (CEST) Received: (qmail 69335 invoked by uid 500); 11 Apr 2017 22:06:58 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 69326 invoked by uid 99); 11 Apr 2017 22:06:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2017 22:06:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 303EEDFDAC; Tue, 11 Apr 2017 22:06:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wang@apache.org To: common-commits@hadoop.apache.org Message-Id: <918fe9d8967247ac88809ba3b91baedf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: HADOOP-14066 VersionInfo should be marked as public API Date: Tue, 11 Apr 2017 22:06:58 +0000 (UTC) archived-at: Tue, 11 Apr 2017 22:07:00 -0000 Repository: hadoop Updated Branches: refs/heads/branch-2.7 9f4585c95 -> 7a3f9e8fa HADOOP-14066 VersionInfo should be marked as public API (cherry picked from commit 2ed65540a3fe73db5d2dd0d25e658ccf13c9188a) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7a3f9e8f Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7a3f9e8f Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7a3f9e8f Branch: refs/heads/branch-2.7 Commit: 7a3f9e8facdf662be48a3a411f72752ad86917f8 Parents: 9f4585c Author: Steve Loughran Authored: Sat Apr 8 13:41:10 2017 +0100 Committer: Andrew Wang Committed: Tue Apr 11 15:06:48 2017 -0700 ---------------------------------------------------------------------- .../org/apache/hadoop/util/VersionInfo.java | 27 +++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/7a3f9e8f/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java index 9296d54..86913b2 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java @@ -31,8 +31,8 @@ import org.apache.hadoop.io.IOUtils; /** * This class returns build information about Hadoop components. */ -@InterfaceAudience.Private -@InterfaceStability.Unstable +@InterfaceAudience.Public +@InterfaceStability.Stable public class VersionInfo { private static final Log LOG = LogFactory.getLog(VersionInfo.class); @@ -106,8 +106,8 @@ public class VersionInfo { } /** - * Get the subversion revision number for the root directory - * @return the revision number, eg. "451451" + * Get the Git commit hash of the repository when compiled. + * @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a" */ public static String getRevision() { return COMMON_VERSION_INFO._getRevision(); @@ -128,7 +128,7 @@ public class VersionInfo { public static String getDate() { return COMMON_VERSION_INFO._getDate(); } - + /** * The user that compiled Hadoop. * @return the username of the user @@ -136,25 +136,27 @@ public class VersionInfo { public static String getUser() { return COMMON_VERSION_INFO._getUser(); } - + /** - * Get the subversion URL for the root Hadoop directory. + * Get the URL for the Hadoop repository. + * @return the URL of the Hadoop repository */ public static String getUrl() { return COMMON_VERSION_INFO._getUrl(); } /** - * Get the checksum of the source files from which Hadoop was - * built. - **/ + * Get the checksum of the source files from which Hadoop was built. + * @return the checksum of the source files + */ public static String getSrcChecksum() { return COMMON_VERSION_INFO._getSrcChecksum(); } /** - * Returns the buildVersion which includes version, - * revision, user and date. + * Returns the buildVersion which includes version, + * revision, user and date. + * @return the buildVersion */ public static String getBuildVersion(){ return COMMON_VERSION_INFO._getBuildVersion(); @@ -162,6 +164,7 @@ public class VersionInfo { /** * Returns the protoc version used for the build. + * @return the protoc version */ public static String getProtocVersion(){ return COMMON_VERSION_INFO._getProtocVersion(); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org