|
@@ -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 how much to rely on a particular package,
|
|
@@ -32,12 +34,14 @@ public class InterfaceStability {
|
|
|
* can break compatibility only at major release (ie. at m.0).
|
|
|
*/
|
|
|
@Documented
|
|
|
+ @Retention(RetentionPolicy.RUNTIME)
|
|
|
public @interface Stable {};
|
|
|
|
|
|
/**
|
|
|
* Evolving, but can break compatibility at minor release (i.e. m.x)
|
|
|
*/
|
|
|
@Documented
|
|
|
+ @Retention(RetentionPolicy.RUNTIME)
|
|
|
public @interface Evolving {};
|
|
|
|
|
|
/**
|
|
@@ -45,5 +49,6 @@ public class InterfaceStability {
|
|
|
* level of release granularity.
|
|
|
*/
|
|
|
@Documented
|
|
|
+ @Retention(RetentionPolicy.RUNTIME)
|
|
|
public @interface Unstable {};
|
|
|
}
|