fix ThreadPool bug
[org.ibex.util.git] / src / org / ibex / util / Cache.java
index dc903b8..82311ec 100644 (file)
@@ -10,7 +10,11 @@ package org.ibex.util;
  *
  *  @author crawshaw@ibex.org
  */
-public class Cache extends Basket.HashMap {
+public class Cache extends Basket.Hash {
+    public Cache(int maxSize, boolean accessOrder) {
+        super(maxSize * 2, 0.75F);
+    }
+    /*
     private static final long serialVersionUID = 23498092L;
 
     private final int maxSize;
@@ -64,4 +68,5 @@ public class Cache extends Basket.HashMap {
     protected void entryUpdated(int i) {
         if (!accessOrder) { entryRemoved(i); entryAdded(i); }
     }
+    */
 }