svn commit: r585654 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/UtilCache.java

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

svn commit: r585654 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/UtilCache.java

doogie-3
Author: doogie
Date: Wed Oct 17 12:58:25 2007
New Revision: 585654

URL: http://svn.apache.org/viewvc?rev=585654&view=rev
Log:
Use auto-boxing/unboxing for default indices.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1299

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

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/UtilCache.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/UtilCache.java?rev=585654&r1=585653&r2=585654&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/UtilCache.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/UtilCache.java Wed Oct 17 12:58:25 2007
@@ -187,11 +187,11 @@
         Integer curInd = (Integer) UtilCache.defaultIndices.get(cacheName);
 
         if (curInd == null) {
-            UtilCache.defaultIndices.put(cacheName, new Integer(1));
+            UtilCache.defaultIndices.put(cacheName, 1);
             return "";
         } else {
-            UtilCache.defaultIndices.put(cacheName, new Integer(curInd.intValue() + 1));
-            return Integer.toString(curInd.intValue() + 1);
+            UtilCache.defaultIndices.put(cacheName, curInd + 1);
+            return Integer.toString(curInd + 1);
         }
     }