Commits

rainerh  committed 09538a2

Generic Support in xwork-tiger.jar does not work
o fixed javadocs... Annotations need to be set on field level
Issue number: WW-1192
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@920e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits c14fb11

Comments (0)

Files changed (4)

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

  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The CreateIfNull annotation must be applied at method level.
+ * <p/>The CreateIfNull annotation must be applied at field level.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  *
  * <p/> <u>Example code:</u>
  * <pre>
  * <!-- START SNIPPET: example -->
- * List<User> users = null;
- *
  * &#64;CreateIfNull( value = true )
- * public void setUsers(List<User> users) {
- *   this.users = users;
- * }
+ * private List<User> users;
  * <!-- END SNIPPET: example -->
  * </pre>
  *

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 method level.
+ * <p/>The Element annotation must be applied at field level.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  *
  * <pre>
  * <!-- START SNIPPET: example -->
  * // The key property for User objects within the users collection is the <code>userName</code> attribute.
- * Map<Long, User> userMap = null;
- * List<User> userList = null;
- *
  * &#64;Element( value = com.acme.User )
- * public void setUserMap(Map<Long, User> userMap) {
- *   this.userMap = userMap;
- * }
+ * private Map<Long, User> userMap;
  *
  * &#64;Element( value = com.acme.User )
- * public void setUserList(List<User> userList) {
- *   this.userList = userList;
- * }
+ * public List<User> userList;
  * <!-- END SNIPPET: example -->
  * </pre>
  *

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

  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The Key annotation must be applied at method level.
+ * <p/>The Key annotation must be applied at field level.
  * <!-- END SNIPPET: usage -->
  * <p/> <u>Annotation parameters:</u>
  *
  * <pre>
  * <!-- START SNIPPET: example -->
  * // The key property for User objects within the users collection is the <code>userName</code> attribute.
- * Map<Long, User> userMap = null;
- *
  * &#64;Key( value = java.lang.Long.class )
- * public void setUserMap(Map<Long, User> userMap) {
- *   this.userMap = userMap;
- * }
+ * private Map<Long, User> userMap;
  * <!-- END SNIPPET: example -->
  * </pre>
  *

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

  * <p/> <u>Annotation usage:</u>
  *
  * <!-- START SNIPPET: usage -->
- * <p/>The KeyProperty annotation must be applied at method level.
+ * <p/>The KeyProperty annotation must be applied at field 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>
  * <pre>
  * <!-- START SNIPPET: example -->
  * // The key property for User objects within the users collection is the <code>userName</code> attribute.
- * List<User> users = null;
- *
  * &#64;KeyProperty( value = "userName" )
- * public void setUsers(List<User> users) {
- *   this.users = users;
- * }
+ * protected List<User> users = null;
  * <!-- END SNIPPET: example -->
  * </pre>
  *