hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1572784 - in /hadoop/common/branches/branch-2/hadoop-common-project: hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java hadoop-common/CHANGES.txt
Date Thu, 27 Feb 2014 23:32:49 GMT
Author: arp
Date: Thu Feb 27 23:32:48 2014
New Revision: 1572784

URL: http://svn.apache.org/r1572784
Log:
HADOOP-10374. Merging r1572783 from trunk to branch-2.

Modified:
    hadoop/common/branches/branch-2/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
    hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt

Modified: hadoop/common/branches/branch-2/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java?rev=1572784&r1=1572783&r2=1572784&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
(original)
+++ hadoop/common/branches/branch-2/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
Thu Feb 27 23:32:48 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.
@@ -28,20 +30,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/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1572784&r1=1572783&r2=1572784&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt (original)
+++ hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/CHANGES.txt Thu Feb
27 23:32:48 2014
@@ -43,6 +43,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



Mime
View raw message