db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1337004 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
Date Fri, 11 May 2012 02:07:44 GMT
Author: tfischer
Date: Fri May 11 02:07:44 2012
New Revision: 1337004

URL: http://svn.apache.org/viewvc?rev=1337004&view=rev
Log:
fix checkstyle problem
use final for unmodified fields

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java?rev=1337004&r1=1337003&r2=1337004&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
Fri May 11 02:07:44 2012
@@ -112,7 +112,7 @@ public class IDBroker implements Runnabl
     private static final double CLEVERQUANTITY_MAX_DEFAULT = 10000d;
 
     /** the name of the database in which this IdBroker is running. */
-    private String databaseName;
+    private final String databaseName;
 
     /**
      * The default size of the per-table meta data <code>Hashtable</code>
@@ -126,7 +126,7 @@ public class IDBroker implements Runnabl
      * Key: String table name.
      * Value: List of Integer IDs.
      */
-    private Map<String, List<BigDecimal>> ids
+    private final Map<String, List<BigDecimal>> ids
             = new Hashtable<String, List<BigDecimal>>(DEFAULT_SIZE);
 
     /**
@@ -135,7 +135,7 @@ public class IDBroker implements Runnabl
      * Key: String table name.
      * Value: Integer quantity.
      */
-    private Map<String, BigDecimal> quantityStore
+    private final Map<String, BigDecimal> quantityStore
         = new Hashtable<String, BigDecimal>(DEFAULT_SIZE);
 
     /**
@@ -144,7 +144,7 @@ public class IDBroker implements Runnabl
      * Key: String table name.
      * Value: Date of last id request.
      */
-    private Map<String, java.util.Date> lastQueryTime
+    private final Map<String, java.util.Date> lastQueryTime
             = new Hashtable<String, java.util.Date>(DEFAULT_SIZE);
 
     /**
@@ -195,7 +195,7 @@ public class IDBroker implements Runnabl
         "idbroker.usenewconnection";
 
     /** the log */
-    private Log log = LogFactory.getLog(IDBroker.class);
+    private final Log log = LogFactory.getLog(IDBroker.class);
 
     /**
      * Constructs an IdBroker for the given Database.
@@ -551,7 +551,8 @@ public class IDBroker implements Runnabl
             }
             catch (InterruptedException exc)
             {
-                // ignored
+                log.trace("InterruptedException caught and ignored "
+                        + "during IdBroker sleep");
             }
 
             // logger.info("IDBroker thread checking for more keys.");



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


Mime
View raw message