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:05:12 UTC
svn commit: r821117 - in /harmony/enhanced/classlib/trunk/modules/annotation:
make/findbugs-exclude-filter.xml
src/main/java/java/lang/annotation/Target.java
Author: tellison
Date: Fri Oct 2 18:05:12 2009
New Revision: 821117
URL: http://svn.apache.org/viewvc?rev=821117&view=rev
Log:
Add missing JavaDoc comment for the type.
Modified:
harmony/enhanced/classlib/trunk/modules/annotation/make/findbugs-exclude-filter.xml
harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
Modified: harmony/enhanced/classlib/trunk/modules/annotation/make/findbugs-exclude-filter.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/annotation/make/findbugs-exclude-filter.xml?rev=821117&r1=821116&r2=821117&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/annotation/make/findbugs-exclude-filter.xml (original)
+++ harmony/enhanced/classlib/trunk/modules/annotation/make/findbugs-exclude-filter.xml Fri Oct 2 18:05:12 2009
@@ -28,7 +28,7 @@
<Match>
<Class name="java.lang.annotation.AnnotationTypeMismatchException" />
<Field name="element" />
- <Bug code="Se" />
+ <Bug pattern="SE_BAD_FIELD" />
</Match>
</FindBugsFilter>
Modified: harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java?rev=821117&r1=821116&r2=821117&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java (original)
+++ harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java Fri Oct 2 18:05:12 2009
@@ -20,12 +20,19 @@
/**
* Defines a meta-annotation for determining what {@link ElementType}s an
* annotation can be applied to.
- *
+ *
+ * @see ElementType
* @since 1.5
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Target {
+
+ /**
+ * Returns the program element types for which this annotation is applied.
+ *
+ * @return the types of element as defined by {@code ElementType}
+ */
ElementType[] value();
}