summaryrefslogtreecommitdiffstats
path: root/annotation/src
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-20 14:03:55 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-20 14:03:55 -0800
commit4351da844f9132d2d801d1a10ccc195091e31a8a (patch)
treebaeef62a8d92d647bdedb71625e7fadae385f867 /annotation/src
parentd94c06c605baa7814b787bab7c993775b486ffba (diff)
downloadlibcore-4351da844f9132d2d801d1a10ccc195091e31a8a.zip
libcore-4351da844f9132d2d801d1a10ccc195091e31a8a.tar.gz
libcore-4351da844f9132d2d801d1a10ccc195091e31a8a.tar.bz2
auto import from //branches/cupcake/...@127101
Diffstat (limited to 'annotation/src')
-rw-r--r--annotation/src/main/java/java/lang/annotation/Retention.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/annotation/src/main/java/java/lang/annotation/Retention.java b/annotation/src/main/java/java/lang/annotation/Retention.java
index 1c440ae..198fccc 100644
--- a/annotation/src/main/java/java/lang/annotation/Retention.java
+++ b/annotation/src/main/java/java/lang/annotation/Retention.java
@@ -17,14 +17,10 @@
package java.lang.annotation;
-// BEGIN android-note
-// Un-linked RetentionPolicy#RUNTIME due to clearjavadoc problem (it doesn't
-// yet deal with links to enums).
-// END android-note
-
/**
* Defines a meta-annotation for determining the scope of retention for an
- * annotation. The default value is {@code RetentionPolicy.RUNTIME}.
+ * annotation. If the retention annotation is not set {@code
+ * RetentionPolicy.CLASS} is used as default retention.
*
* @since Android 1.0
*/
@@ -32,5 +28,8 @@ package java.lang.annotation;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Retention {
- RetentionPolicy value() default RetentionPolicy.CLASS;
+ // BEGIN android-changed
+ // copied from newer version of harmony
+ RetentionPolicy value();
+ // END android-changed
}