Author: doogie
Date: Wed Oct 17 13:25:56 2007
New Revision: 585669
URL:
http://svn.apache.org/viewvc?rev=585669&view=revLog:
Switch to the new LRUMap implementation. Closes
https://issues.apache.org/jira/browse/OFBIZ-1305Modified:
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()) {