Author: jleroux
Date: Mon Nov 24 02:43:39 2008
New Revision: 720158
URL:
http://svn.apache.org/viewvc?rev=720158&view=revLog:
javolution.util.FastSet has not getAt() method, head() is ok in this case
http://javolution.org/api/javolution/util/FastSet.htmlModified:
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);