tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1140461 - /tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
Date Tue, 28 Jun 2011 07:15:03 GMT
Author: markt
Date: Tue Jun 28 07:15:02 2011
New Revision: 1140461

URL: http://svn.apache.org/viewvc?rev=1140461&view=rev
Log:
No need for a ConcurrentHashMap now pre-population is used.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java?rev=1140461&r1=1140460&r2=1140461&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java Tue Jun 28 07:15:02 2011
@@ -23,8 +23,9 @@ import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
+import java.util.HashMap;
 import java.util.Locale;
-import java.util.concurrent.ConcurrentHashMap;
+import java.util.Map;
 
 import org.apache.tomcat.util.res.StringManager;
 
@@ -48,8 +49,8 @@ public class B2CConverter {
     private static final StringManager sm =
         StringManager.getManager(Constants.Package);
 
-    private static final ConcurrentHashMap<String, Charset> encodingToCharsetCache
=
-        new ConcurrentHashMap<String, Charset>();
+    private static final Map<String, Charset> encodingToCharsetCache =
+        new HashMap<String, Charset>();
 
     static {
         for (Charset charset: Charset.availableCharsets().values()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message