avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: avalon-excalibur/datasource/src/test/org/apache/avalon/excalibur/datasource/ids/test TableIdGeneratorMultithreadedJdbcTestCase.java
Date Mon, 10 Mar 2003 14:42:32 GMT
bloritsch    2003/03/10 06:42:32

  Modified:    datasource/src/test/org/apache/avalon/excalibur/datasource/ids/test
                        TableIdGeneratorMultithreadedJdbcTestCase.java
  Log:
  Performance improvements.  As private they are generated by
  a synthetic accessor method which slows performance.
  
  Revision  Changes    Path
  1.4       +6 -6      avalon-excalibur/datasource/src/test/org/apache/avalon/excalibur/datasource/ids/test/TableIdGeneratorMultithreadedJdbcTestCase.java
  
  Index: TableIdGeneratorMultithreadedJdbcTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/datasource/src/test/org/apache/avalon/excalibur/datasource/ids/test/TableIdGeneratorMultithreadedJdbcTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TableIdGeneratorMultithreadedJdbcTestCase.java	25 Feb 2003 16:28:22 -0000	1.3
  +++ TableIdGeneratorMultithreadedJdbcTestCase.java	10 Mar 2003 14:42:32 -0000	1.4
  @@ -38,11 +38,11 @@
   
       private ComponentSelector m_idGeneratorSelector;
   
  -    private Object m_semaphore = new Object();
  -    private IdGenerator m_idGenerator;
  -    private int m_perThreadGets;
  -    private HashMap m_ids;
  -    private Throwable m_throwable;
  +    protected Object m_semaphore = new Object();
  +    protected IdGenerator m_idGenerator;
  +    protected int m_perThreadGets;
  +    protected HashMap m_ids;
  +    protected Throwable m_throwable;
   
       /*---------------------------------------------------------------
        * Constructors
  @@ -396,7 +396,7 @@
                                                          "WHERE table_name = '" + tableName
+ "'" );
                   if( rs.next() )
                   {
  -                    BigDecimal id = rs.getBigDecimal( 1 );
  +                    rs.getBigDecimal( 1 );
                   }
                   else
                   {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message