From a608a24dbeaf29ad73f2fcc0f1570e9feefe5998 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 13 May 2012 23:05:11 +0000 Subject: [PATCH] those annotations are only a field level git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338004 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugins/annotations/Component.java | 2 +- .../java/org/apache/maven/plugins/annotations/Parameter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java index b585759..66b835a 100644 --- a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java +++ b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java @@ -32,7 +32,7 @@ import java.lang.annotation.Target; */ @Documented @Retention( RetentionPolicy.CLASS ) -@Target( { ElementType.FIELD, ElementType.METHOD } ) +@Target( { ElementType.FIELD } ) @Inherited public @interface Component { diff --git a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java index 60f3429..b9da288 100644 --- a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java +++ b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java @@ -32,7 +32,7 @@ import java.lang.annotation.Target; */ @Documented @Retention( RetentionPolicy.CLASS ) -@Target( { ElementType.FIELD, ElementType.METHOD } ) +@Target( { ElementType.FIELD } ) @Inherited public @interface Parameter {