tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r828749 - /tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java
Date Thu, 22 Oct 2009 15:31:53 GMT
Author: markt
Date: Thu Oct 22 15:31:53 2009
New Revision: 828749

URL: http://svn.apache.org/viewvc?rev=828749&view=rev
Log:
Revert r828212. The cache limit was applied to the wrong field. Thanks to Remy for the catch.

Modified:
    tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java

Modified: tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java?rev=828749&r1=828748&r2=828749&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java (original)
+++ tomcat/trunk/java/org/apache/catalina/loader/WebappClassLoader.java Thu Oct 22 15:31:53
2009
@@ -41,8 +41,6 @@
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.Map;
 import java.util.Vector;
 import java.util.jar.Attributes;
 import java.util.jar.JarEntry;
@@ -240,14 +238,7 @@
      * The cache of ResourceEntry for classes and resources we have loaded,
      * keyed by resource name.
      */
-    protected HashMap<String, ResourceEntry> resourceEntries =
-            new LinkedHashMap<String, ResourceEntry>() {
-        private static final long serialVersionUID = 1L;
-        protected boolean removeEldestEntry(
-                Map.Entry<String, ResourceEntry> eldest) {
-            return size() > 1000;
-        }
-    };
+    protected HashMap<String, ResourceEntry> resourceEntries = new HashMap<String,
ResourceEntry>();
 
 
     /**



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


Mime
View raw message