db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r366045 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/CacheDistributor.java
Date Thu, 05 Jan 2006 01:15:37 GMT
Author: arminw
Date: Wed Jan  4 17:15:33 2006
New Revision: 366045

URL: http://svn.apache.org/viewcvs?rev=366045&view=rev
Log:
code cleanup

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/CacheDistributor.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/CacheDistributor.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/CacheDistributor.java?rev=366045&r1=366044&r2=366045&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/CacheDistributor.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/cache/CacheDistributor.java
Wed Jan  4 17:15:33 2006
@@ -66,7 +66,7 @@
     /**
      * map, represents used cache implementations
      */
-    private Map caches = new HashMap();
+    private final Map caches = new HashMap();
     private List excludedPackages;
 
     private final PersistenceBroker broker;
@@ -126,7 +126,7 @@
         synchronized(caches)
         {
             Iterator it = caches.values().iterator();
-            ObjectCache oc = null;
+            ObjectCache oc;
             while(it.hasNext())
             {
                 oc = (ObjectCache) it.next();
@@ -155,7 +155,7 @@
         2. try to find a cache defined per jdbc-connection-descriptor
         */
         boolean useConnectionLevelCache = false;
-        ObjectCacheInternal retval = null;
+        ObjectCacheInternal retval;
         /*
         first search in class-descriptor, then in jdbc-connection-descriptor
         for ObjectCacheDescriptor.
@@ -301,7 +301,7 @@
     private List createExcludedPackagesList(String theList)
     {
         StringTokenizer tok = new StringTokenizer(theList, DELIMITER_FOR_EXCLUDE);
-        String token = null;
+        String token;
         ArrayList result = new ArrayList();
         while(tok.hasMoreTokens())
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message