You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/04/19 20:28:48 UTC
[jira] Closed: (XMLBEANS-127) jdk1.5 compliance
[ http://issues.apache.org/jira/browse/XMLBEANS-127?page=all ]
Jacob Danner closed XMLBEANS-127:
---------------------------------
Closing
> jdk1.5 compliance
> -----------------
>
> Key: XMLBEANS-127
> URL: http://issues.apache.org/jira/browse/XMLBEANS-127
> Project: XMLBeans
> Type: Improvement
> Components: Compiler
> Versions: Version 2
> Environment: linux
> Reporter: Rolf Schumacher
> Priority: Minor
>
> I would recommend to generate Array access slightly different from what it is now:
> 1 /**
> 2 * Gets array of all "MyElement" elements
> 3 */
> 4 public mypackage.x2004.mySchema.MyElementDocument.MyElement[] getMyElementArray()
> 5 {
> 6 synchronized (monitor())
> 7 {
> 8 check_orphaned();
> 9 java.util.List<mypackage.x2004.mySchema.MyElementDocument.MyElement> targetList =
> new java.util.ArrayList<mypackage.x2004.mySchema.MyElementDocument.MyElement>();
> 10 get_store().find_all_element_users(MYELEMENT$0, targetList);
> 11 mypackage.x2004.mySchema.MyElementDocument.MyElement[] result =
> new mypackage.x2004.mySchema.MyElementDocument.MyElement[targetList.size()];
> 12 targetList.toArray(result);
> 13 return result;
> 14 }
> 15 }
> as opposed to
> 9 java.util.List targetList = new java.util.ArrayList();
> Rolf
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org