You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sz...@apache.org on 2014/02/28 20:37:48 UTC
svn commit: r1573043 - in
/hadoop/common/branches/HDFS-5535/hadoop-common-project:
hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
hadoop-common/CHANGES.txt
Author: szetszwo
Date: Fri Feb 28 19:37:47 2014
New Revision: 1573043
URL: http://svn.apache.org/r1573043
Log:
Merge r1569890 through r1573042 from trunk.
Modified:
hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-common/CHANGES.txt (contents, props changed)
Modified: hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java?rev=1573043&r1=1573042&r2=1573043&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java (original)
+++ hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java Fri Feb 28 19:37:47 2014
@@ -18,6 +18,8 @@
package org.apache.hadoop.classification;
import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
/**
* Annotation to inform users of a package, class or method's intended audience.
@@ -46,20 +48,26 @@ public class InterfaceAudience {
/**
* Intended for use by any project or application.
*/
- @Documented public @interface Public {};
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ public @interface Public {};
/**
* Intended only for the project(s) specified in the annotation.
* For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".
*/
- @Documented public @interface LimitedPrivate {
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ public @interface LimitedPrivate {
String[] value();
};
/**
* Intended for use only within Hadoop itself.
*/
- @Documented public @interface Private {};
+ @Documented
+ @Retention(RetentionPolicy.RUNTIME)
+ public @interface Private {};
private InterfaceAudience() {} // Audience can't exist on its own
}
Modified: hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1573043&r1=1573042&r2=1573043&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-common/CHANGES.txt (original)
+++ hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-common/CHANGES.txt Fri Feb 28 19:37:47 2014
@@ -346,6 +346,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-9454. Support multipart uploads for s3native. (Jordan Mendelson and
Akira AJISAKA via atm)
+ HADOOP-10374. InterfaceAudience annotations should have
+ RetentionPolicy.RUNTIME (Enis Soztutar via Arpit Agarwal)
+
OPTIMIZATIONS
BUG FIXES
Propchange: hadoop/common/branches/HDFS-5535/hadoop-common-project/hadoop-common/CHANGES.txt
------------------------------------------------------------------------------
Merged /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt:r1572723-1573042