You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/03/02 22:54:02 UTC
svn commit: r1076419 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java
Author: mrisaliti
Date: Wed Mar 2 21:54:02 2011
New Revision: 1076419
URL: http://svn.apache.org/viewvc?rev=1076419&view=rev
Log:
Remove some warning in UtilCache (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java?rev=1076419&r1=1076418&r2=1076419&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/UtilCache.java Wed Mar 2 21:54:02 2011
@@ -246,15 +246,6 @@ public class UtilCache<K, V> implements
return key == ObjectType.NULL ? null : (K) key;
}
- private void addAllFileTableValues(List<V> values) throws IOException {
- FastIterator<V> iter = fileTable.values();
- V value = iter.next();
- while (value != null) {
- values.add(value);
- value = iter.next();
- }
- }
-
private void addAllFileTableKeys(Set<Object> keys) throws IOException {
FastIterator<Object> iter = fileTable.keys();
Object key = null;
@@ -718,8 +709,8 @@ public class UtilCache<K, V> implements
Map<Object, CacheLine<V>> oldmap = this.memoryTable;
if (newInMemory > 0) {
- if (this.memoryTable instanceof ConcurrentLinkedHashMap) {
- ((ConcurrentLinkedHashMap) this.memoryTable).setCapacity(newInMemory);
+ if (this.memoryTable instanceof ConcurrentLinkedHashMap<?, ?>) {
+ ((ConcurrentLinkedHashMap<?, ?>) this.memoryTable).setCapacity(newInMemory);
return;
} else {
this.memoryTable =new Builder<Object, CacheLine<V>>()