svn commit: r585644 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java

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

svn commit: r585644 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java

doogie-3
Author: doogie
Date: Wed Oct 17 12:43:55 2007
New Revision: 585644

URL: http://svn.apache.org/viewvc?rev=585644&view=rev
Log:
Use FastMap/Map instead of Hashtable/Dictionary.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1326

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java?rev=585644&r1=585643&r2=585644&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpRequestFileUpload.java Wed Oct 17 12:43:55 2007
@@ -24,12 +24,12 @@
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.util.Date;
-import java.util.Dictionary;
-import java.util.Hashtable;
+import java.util.Map;
 
 import javax.servlet.ServletInputStream;
 import javax.servlet.http.HttpServletRequest;
 
+import javolution.util.FastMap;
 
 /**
  * HttpRequestFileUpload - Receive a file upload through an HttpServletRequest
@@ -46,7 +46,7 @@
     private String filename;
     private String contentType;
     private String overrideFilename = null;
-    private Dictionary fields;
+    private Map fields;
 
     public String getOverrideFilename() {
         return overrideFilename;
@@ -140,7 +140,7 @@
         String boundary = new String(line, 0, boundaryLength); // -2 discards the newline character
 
         System.out.println("boundary=[" + boundary + "] length is " + boundaryLength);
-        fields = new Hashtable();
+        fields = FastMap.newInstance();
 
         while (requestLength > 0/* i != -1*/) {
             String newLine = "";