svn commit: r585641 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java

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

svn commit: r585641 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java

doogie-3
Author: doogie
Date: Wed Oct 17 12:42:06 2007
New Revision: 585641

URL: http://svn.apache.org/viewvc?rev=585641&view=rev
Log:
Switch from LinkedMap to LinkedHashMap.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1334

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java?rev=585641&r1=585640&r2=585641&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/container/ContainerConfig.java Wed Oct 17 12:42:06 2007
@@ -22,6 +22,7 @@
 import java.net.URL;
 import java.util.Collection;
 import java.util.Iterator;
+import java.util.LinkedHashMap;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
@@ -31,7 +32,6 @@
 import org.ofbiz.base.util.UtilValidate;
 import org.ofbiz.base.util.UtilXml;
 
-import org.apache.commons.collections.map.LinkedMap;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.xml.sax.SAXException;
@@ -44,7 +44,7 @@
     
     public static final String module = ContainerConfig.class.getName();
     
-    protected static Map containers = new LinkedMap();
+    protected static Map containers = new LinkedHashMap();
     
     public static Container getContainer(String containerName, String configFile) throws ContainerException {
         Container container = (Container) containers.get(containerName);
@@ -191,7 +191,7 @@
             this.name = element.getAttribute("name");
             this.className = element.getAttribute("class");
             
-            properties = new LinkedMap();
+            properties = new LinkedHashMap();
             Iterator elementIter = UtilXml.childElementList(element, "property").iterator();
             while (elementIter.hasNext()) {
                 Element curElement = (Element) elementIter.next();
@@ -231,7 +231,7 @@
                     this.value = UtilXml.childElementValue(element, "property-value");                    
                 }
 
-                properties = new LinkedMap();
+                properties = new LinkedHashMap();
                 Iterator elementIter = UtilXml.childElementList(element, "property").iterator();
                 while (elementIter.hasNext()) {
                     Element curElement = (Element) elementIter.next();