svn commit: r720158 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r720158 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

jleroux@apache.org
Author: jleroux
Date: Mon Nov 24 02:43:39 2008
New Revision: 720158

URL: http://svn.apache.org/viewvc?rev=720158&view=rev
Log:
javolution.util.FastSet has not getAt() method, head() is ok in this case
http://javolution.org/api/javolution/util/FastSet.html

Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy?rev=720158&r1=720157&r2=720158&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy Mon Nov 24 02:43:39 2008
@@ -33,7 +33,7 @@
 if ("search".equals(parameters.findType)) {
     artifactInfoSet = aif.getAllArtifactInfosByNamePartial(name, type);
     if (artifactInfoSet.size() == 1) {
-        artifactInfo = artifactInfoSet[0];
+        artifactInfo = artifactInfoSet.head();
         context.artifactInfo = artifactInfo;
     } else {
         context.artifactInfoSet = new TreeSet(artifactInfoSet);