Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71CB2CB5F for ; Fri, 11 May 2012 02:08:06 +0000 (UTC) Received: (qmail 3421 invoked by uid 500); 11 May 2012 02:08:06 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 3399 invoked by uid 500); 11 May 2012 02:08:06 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 3390 invoked by uid 500); 11 May 2012 02:08:06 -0000 Received: (qmail 3386 invoked by uid 99); 11 May 2012 02:08:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 02:08:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2012 02:08:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CAD48238890B; Fri, 11 May 2012 02:07:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: torque-commits@db.apache.org From: tfischer@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120511020744.CAD48238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 Hashtable @@ -126,7 +126,7 @@ public class IDBroker implements Runnabl * Key: String table name. * Value: List of Integer IDs. */ - private Map> ids + private final Map> ids = new Hashtable>(DEFAULT_SIZE); /** @@ -135,7 +135,7 @@ public class IDBroker implements Runnabl * Key: String table name. * Value: Integer quantity. */ - private Map quantityStore + private final Map quantityStore = new Hashtable(DEFAULT_SIZE); /** @@ -144,7 +144,7 @@ public class IDBroker implements Runnabl * Key: String table name. * Value: Date of last id request. */ - private Map lastQueryTime + private final Map lastQueryTime = new Hashtable(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