svn commit: r585669 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java

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

svn commit: r585669 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java

doogie-3
Author: doogie
Date: Wed Oct 17 13:25:56 2007
New Revision: 585669

URL: http://svn.apache.org/viewvc?rev=585669&view=rev
Log:
Switch to the new LRUMap implementation.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1305

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

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java?rev=585669&r1=585668&r2=585669&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java Wed Oct 17 13:25:56 2007
@@ -31,9 +31,9 @@
 import javolution.util.FastList;
 import javolution.util.FastMap;
 
-import org.apache.commons.collections.map.LRUMap;
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.ObjectType;
+import org.ofbiz.base.util.collections.LRUMap;
 
 
 public class CacheLineTable implements Serializable {
@@ -240,12 +240,7 @@
     }
 
     public synchronized Object getKeyFromMemory(int index) {
-        Iterator i = null;
-        if (memoryTable instanceof LRUMap) {
-            i = ((LRUMap) memoryTable).orderedMapIterator();
-        } else {
-            i = memoryTable.keySet().iterator();
-        }
+        Iterator i = memoryTable.keySet().iterator();
 
         int currentIdx = 0;
         while (i.hasNext()) {