Revert r828212. The cache limit was applied to the wrong field. Thanks to Remy for...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 22 Oct 2009 15:31:53 +0000 (15:31 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 22 Oct 2009 15:31:53 +0000 (15:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@828749 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/loader/WebappClassLoader.java

index 10a00f3..442eb0b 100644 (file)
@@ -41,8 +41,6 @@ import java.util.Collection;
 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 @@ public class WebappClassLoader
      * 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>();
 
 
     /**