You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2009/10/02 20:08:51 UTC
svn commit: r821118 -
/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
Author: tellison
Date: Fri Oct 2 18:08:50 2009
New Revision: 821118
URL: http://svn.apache.org/viewvc?rev=821118&view=rev
Log:
Add JavaDoc for retention value.
Modified:
harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
Modified: harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java?rev=821118&r1=821117&r2=821118&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java (original)
+++ harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java Fri Oct 2 18:08:50 2009
@@ -22,11 +22,18 @@
* annotation. If the retention annotation is not set {@code
* RetentionPolicy.CLASS} is used as default retention.
*
+ * @see RetentionPolicy
* @since 1.5
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Retention {
+
+ /**
+ * Returns the retention policy for the annotation.
+ *
+ * @return a retention policy as defined in {@code RetentionPolicy}
+ */
RetentionPolicy value();
}