Commits

Anonymous committed f0fcc47

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/2.0@1350e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits a9372cc
  • Branches 2.0, xwork_2_0_7

Comments (0)

Files changed (4)

File src/java/com/opensymphony/xwork2/util/CreateIfNull.java

 
 package com.opensymphony.xwork2.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 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 src/java/com/opensymphony/xwork2/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 src/java/com/opensymphony/xwork2/util/Key.java

 
 package com.opensymphony.xwork2.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 src/java/com/opensymphony/xwork2/util/KeyProperty.java

 
 package com.opensymphony.xwork2.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 {
 
     /**