svn commit: r585794 - /ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java

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

svn commit: r585794 - /ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java

doogie-3
Author: doogie
Date: Wed Oct 17 19:28:37 2007
New Revision: 585794

URL: http://svn.apache.org/viewvc?rev=585794&view=rev
Log:
Remove use of ArrayList/HashMap, and use FastList/FastMap.

Modified:
    ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java

Modified: ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java?rev=585794&r1=585793&r2=585794&view=diff
==============================================================================
--- ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java (original)
+++ ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java Wed Oct 17 19:28:37 2007
@@ -21,11 +21,12 @@
 
 import java.util.Map;
 import java.util.List;
-import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.Iterator;
 import java.io.*;
 
+import javolution.util.FastList;
+import javolution.util.FastMap;
+
 import org.ofbiz.base.container.Container;
 import org.ofbiz.base.container.ContainerException;
 import org.ofbiz.base.util.Debug;
@@ -109,7 +110,7 @@
     }
 
     private Map buildDataMap() {
-        Map dataMap = new HashMap();
+        Map dataMap = FastMap.newInstance();
         List c[] = getClasspath();
         dataMap.put("classpathJars", c[0]);
         dataMap.put("classpathDirs", c[1]);
@@ -121,8 +122,8 @@
     private List[] getClasspath() {
         Classpath classPath = new Classpath(System.getProperty("java.class.path"));
         List elements = classPath.getElements();
-        List jar = new ArrayList();
-        List dir = new ArrayList();
+        List jar = FastList.newInstance();
+        List dir = FastList.newInstance();
 
         Iterator i = elements.iterator();
         while (i.hasNext()) {