db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/oid IDBroker.java
Date Sat, 18 Jan 2003 16:27:47 GMT
mpoeschl    2003/01/18 08:27:47

  Modified:    src/java/org/apache/torque/oid IDBroker.java
  Log:
  Avoid unused local variables (see http://pmd.sourceforge.net/reports/jakarta-turbine-torque_jakarta-turbine-torque.html)
  
  Revision  Changes    Path
  1.23      +4 -4      jakarta-turbine-torque/src/java/org/apache/torque/oid/IDBroker.java
  
  Index: IDBroker.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/oid/IDBroker.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- IDBroker.java	9 Jan 2003 17:46:20 -0000	1.22
  +++ IDBroker.java	18 Jan 2003 16:27:47 -0000	1.23
  @@ -631,10 +631,10 @@
           BigDecimal nextId = null;
           BigDecimal quantity = null;
           DatabaseMap dbMap = tableMap.getDatabaseMap();
  -        TableMap tMap = dbMap.getTable(tableName);
   
           // Block on the table.  Multiple tables are allowed to ask for
           // ids simultaneously.
  +        //        TableMap tMap = dbMap.getTable(tableName);
           //        synchronized(tMap)  see comment in the getNextIds method
           //        {
           if (adjustQuantity)
  @@ -647,8 +647,8 @@
               if (connection == null || configuration
                   .getBoolean(DB_IDBROKER_USENEWCONNECTION, true))
               {
  -                String databaseName = dbMap.getName();
  -                connection = Transaction.beginOptional(dbMap.getName(), transactionsSupported);
  +                connection = Transaction.beginOptional(dbMap.getName(),
  +                    transactionsSupported);
               }
   
               // Write the current value of quantity of keys to grab
  
  
  

Mime
View raw message