svn commit: r585657 - in /ofbiz/trunk/framework/base/src/base/org/ofbiz/base: config/JNDIConfigUtil.java config/SecurityConfigUtil.java location/FlexibleLocation.java util/ObjectType.java

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

svn commit: r585657 - in /ofbiz/trunk/framework/base/src/base/org/ofbiz/base: config/JNDIConfigUtil.java config/SecurityConfigUtil.java location/FlexibleLocation.java util/ObjectType.java

doogie-3
Author: doogie
Date: Wed Oct 17 13:04:00 2007
New Revision: 585657

URL: http://svn.apache.org/viewvc?rev=585657&view=rev
Log:
Switch some base classes to FastMap.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1333

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/JNDIConfigUtil.java
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/SecurityConfigUtil.java
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/FlexibleLocation.java
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/JNDIConfigUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/JNDIConfigUtil.java?rev=585657&r1=585656&r2=585657&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/JNDIConfigUtil.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/JNDIConfigUtil.java Wed Oct 17 13:04:00 2007
@@ -21,6 +21,8 @@
 import java.util.*;
 import org.w3c.dom.*;
 
+import javolution.util.FastMap;
+
 import org.ofbiz.base.util.*;
 
 /**
@@ -31,7 +33,7 @@
     
     public static final String module = JNDIConfigUtil.class.getName();
     public static final String JNDI_CONFIG_XML_FILENAME = "jndiservers.xml";
-    protected static Map jndiServerInfos = new HashMap();
+    protected static Map jndiServerInfos = FastMap.newInstance();
 
     protected static Element getXmlRootElement() throws GenericConfigException {
         try {

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/SecurityConfigUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/SecurityConfigUtil.java?rev=585657&r1=585656&r2=585657&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/SecurityConfigUtil.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/config/SecurityConfigUtil.java Wed Oct 17 13:04:00 2007
@@ -20,6 +20,7 @@
 
 import java.util.*;
 import org.w3c.dom.*;
+import javolution.util.FastMap;
 import org.ofbiz.base.util.*;
 
 /**
@@ -39,7 +40,7 @@
     /** The security config filename */
     public static final String SECURITY_CONFIG_XML_FILENAME = "security.xml";
 
-    protected static Map securityInfos = new HashMap();
+    protected static Map securityInfos = FastMap.newInstance();
 
     /**
      * Returns the XmlRootElement for the security config

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/FlexibleLocation.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/FlexibleLocation.java?rev=585657&r1=585656&r2=585657&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/FlexibleLocation.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/FlexibleLocation.java Wed Oct 17 13:04:00 2007
@@ -20,9 +20,10 @@
 
 import java.net.MalformedURLException;
 import java.net.URL;
-import java.util.HashMap;
 import java.util.Map;
 
+import javolution.util.FastMap;
+
 import org.ofbiz.base.util.UtilProperties;
 
 /**
@@ -32,9 +33,9 @@
 
 public class FlexibleLocation {
     
-    protected static Map locationResolvers = new HashMap();
+    protected static Map locationResolvers = FastMap.newInstance();
     
-    protected static Map defaultResolvers = new HashMap();
+    protected static Map defaultResolvers = FastMap.newInstance();
     
     protected static String standardUrlResolverName = StandardUrlLocationResolver.class.getName();
     protected static String classpathResolverName = ClasspathLocationResolver.class.getName();

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java?rev=585657&r1=585656&r2=585657&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java Wed Oct 17 13:04:00 2007
@@ -41,7 +41,7 @@
 
     public static final Object NULL = new NullObject();
     
-    protected static Map classCache = new FastMap();
+    protected static Map classCache = FastMap.newInstance();
 
     public static final String LANG_PACKAGE = "java.lang."; // We will test both the raw value and this + raw value
     public static final String SQL_PACKAGE = "java.sql.";   // We will test both the raw value and this + raw value