Skip to content

Commit 2ed6554

Browse files
committed
HADOOP-14066 VersionInfo should be marked as public API
1 parent 612578f commit 2ed6554

File tree

1 file changed

+15
-12
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util

1 file changed

+15
-12
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
/**
3232
* This class returns build information about Hadoop components.
3333
*/
34-
@InterfaceAudience.Private
35-
@InterfaceStability.Unstable
34+
@InterfaceAudience.Public
35+
@InterfaceStability.Stable
3636
public class VersionInfo {
3737
private static final Log LOG = LogFactory.getLog(VersionInfo.class);
3838

@@ -102,8 +102,8 @@ public static String getVersion() {
102102
}
103103

104104
/**
105-
* Get the subversion revision number for the root directory
106-
* @return the revision number, eg. "451451"
105+
* Get the Git commit hash of the repository when compiled.
106+
* @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"
107107
*/
108108
public static String getRevision() {
109109
return COMMON_VERSION_INFO._getRevision();
@@ -124,40 +124,43 @@ public static String getBranch() {
124124
public static String getDate() {
125125
return COMMON_VERSION_INFO._getDate();
126126
}
127-
127+
128128
/**
129129
* The user that compiled Hadoop.
130130
* @return the username of the user
131131
*/
132132
public static String getUser() {
133133
return COMMON_VERSION_INFO._getUser();
134134
}
135-
135+
136136
/**
137-
* Get the subversion URL for the root Hadoop directory.
137+
* Get the URL for the Hadoop repository.
138+
* @return the URL of the Hadoop repository
138139
*/
139140
public static String getUrl() {
140141
return COMMON_VERSION_INFO._getUrl();
141142
}
142143

143144
/**
144-
* Get the checksum of the source files from which Hadoop was
145-
* built.
146-
**/
145+
* Get the checksum of the source files from which Hadoop was built.
146+
* @return the checksum of the source files
147+
*/
147148
public static String getSrcChecksum() {
148149
return COMMON_VERSION_INFO._getSrcChecksum();
149150
}
150151

151152
/**
152-
* Returns the buildVersion which includes version,
153-
* revision, user and date.
153+
* Returns the buildVersion which includes version,
154+
* revision, user and date.
155+
* @return the buildVersion
154156
*/
155157
public static String getBuildVersion(){
156158
return COMMON_VERSION_INFO._getBuildVersion();
157159
}
158160

159161
/**
160162
* Returns the protoc version used for the build.
163+
* @return the protoc version
161164
*/
162165
public static String getProtocVersion(){
163166
return COMMON_VERSION_INFO._getProtocVersion();

0 commit comments

Comments
 (0)