Author: doogie
Date: Mon Nov 23 03:00:04 2009
New Revision: 883221

URL: http://svn.apache.org/viewvc?rev=883221&view=rev
Log:
Make defaultIndex calculation field and method private and static.

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=883221&r1=883220&r2=883221&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 Mon 
Nov 23 03:00:04 2009
@@ -55,7 +55,7 @@
     public static final Map<String, UtilCache<?, ?>> utilCacheTable = new 
WeakHashMap<String, UtilCache<?, ?>>();
 
     /** An index number appended to utilCacheTable names when there are 
conflicts. */
-    protected static Map<String, Integer> defaultIndices = 
FastMap.newInstance();
+    private final static Map<String, Integer> defaultIndices = 
FastMap.newInstance();
 
     /** The name of the UtilCache instance, is also the key for the instance 
in utilCacheTable. */
     private final String name;
@@ -180,7 +180,7 @@
         createCache();
     }
 
-    protected String getNextDefaultIndex(String cacheName) {
+    private static String getNextDefaultIndex(String cacheName) {
         Integer curInd = UtilCache.defaultIndices.get(cacheName);
 
         if (curInd == null) {


Reply via email to