svn commit: r929823 - /ofbiz/trunk/framework/base/src/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: r929823 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/cache/CacheLineTable.java

doogie-3
Author: doogie
Date: Thu Apr  1 04:37:10 2010
New Revision: 929823

URL: http://svn.apache.org/viewvc?rev=929823&view=rev
Log:
Inline getNoCheck method, which was only used in one place.

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=929823&r1=929822&r2=929823&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 Thu Apr  1 04:37:10 2010
@@ -145,15 +145,12 @@ public class CacheLineTable<K, V> implem
         if (key == null) {
             if (Debug.verboseOn()) Debug.logVerbose("In CacheLineTable tried to get with null key, using NullObject" + this.cacheName, module);
         }
-        return getNoCheck(fromKey(key));
-    }
-
-    protected CacheLine<V> getNoCheck(Object key) {
-        CacheLine<V> value = memoryTable.get(key);
+        Object nulledKey = fromKey(key);
+        CacheLine<V> value = memoryTable.get(nulledKey);
         if (value == null) {
             if (fileTable != null) {
                 try {
-                    value = fileTable.get(key);
+                    value = fileTable.get(nulledKey);
                 } catch (IOException e) {
                     Debug.logError(e, module);
                 }