Author: doogie
Date: Wed Nov 25 19:47:31 2009
New Revision: 884239
URL:
http://svn.apache.org/viewvc?rev=884239&view=revLog:
size() needs to be synchronized as well.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java?rev=884239&r1=884238&r2=884239&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java Wed Nov 25 19:47:31 2009
@@ -256,7 +256,7 @@
nullValue = null;
}
- public int size() {
+ public synchronized int size() {
if (fileTable != null) {
return this.keySet().size();
} else {