HADOOP-10383 InterfaceStability annotations should have RetentionPolicy.RUNTIME
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1578694 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d611f42c37
commit
f8d157cda8
@ -18,6 +18,8 @@
|
|||||||
package org.apache.hadoop.classification;
|
package org.apache.hadoop.classification;
|
||||||
|
|
||||||
import java.lang.annotation.Documented;
|
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,
|
* 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).
|
* can break compatibility only at major release (ie. at m.0).
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Stable {};
|
public @interface Stable {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evolving, but can break compatibility at minor release (i.e. m.x)
|
* Evolving, but can break compatibility at minor release (i.e. m.x)
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Evolving {};
|
public @interface Evolving {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -45,5 +49,6 @@ public class InterfaceStability {
|
|||||||
* level of release granularity.
|
* level of release granularity.
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Unstable {};
|
public @interface Unstable {};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user