Commits

Anonymous committed 97f6ff9

Annotations in package com.opensymphony.xwork(2).util missing Retention annotation
Issue Number: XW-480

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1352e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 2ec6f26
  • Branches xwork_1-2

Comments (0)

Files changed (4)

File tiger/src/java/com/opensymphony/xwork/util/CreateIfNull.java

 
 package com.opensymphony.xwork.util;
 
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Retention;
+
 /**
  * <!-- START SNIPPET: description -->
  * <p/>Sets the CreateIfNull for type conversion.
  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The CreateIfNull annotation must be applied at field level.
+ * <p/>The CreateIfNull annotation must be applied at field or method level.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  *
  * @author Rainer Hermanns
  * @version $Id$
  */
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.FIELD, ElementType.METHOD})
 public @interface CreateIfNull {
 
     /**

File tiger/src/java/com/opensymphony/xwork/util/Element.java

  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The Element annotation must be applied at field level.
+ * <p/>The Element annotation must be applied at field or method level.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  *
  * @author Rainer Hermanns
  * @version $Id$
  */
-@Target({ ElementType.FIELD})
 @Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.FIELD, ElementType.METHOD})
 public @interface Element {
 
     /**

File tiger/src/java/com/opensymphony/xwork/util/Key.java

 
 package com.opensymphony.xwork.util;
 
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
 /**
  * <!-- START SNIPPET: description -->
  * <p/>Sets the Key for type conversion.
  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The Key annotation must be applied at field level.
+ * <p/>The Key annotation must be applied at field or method level.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  *
  * @author Rainer Hermanns
  * @version $Id$
  */
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.FIELD, ElementType.METHOD})
 public @interface Key {
 
     /**

File tiger/src/java/com/opensymphony/xwork/util/KeyProperty.java

 
 package com.opensymphony.xwork.util;
 
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
 /**
  * <!-- START SNIPPET: description -->
  * <p/>Sets the KeyProperty for type conversion.
  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The KeyProperty annotation must be applied at field level.
+ * <p/>The KeyProperty annotation must be applied at field or method level.
  * <p/>This annotation should be used with Generic types, if the key property of the key element needs to be specified.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  * @author Patrick Lightbody
  * @author Rainer Hermanns
  */
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.FIELD, ElementType.METHOD})
 public @interface KeyProperty {
 
     /**