commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java PoolableConnectionFactory.java
Date Wed, 09 Jun 2004 18:21:23 GMT
dirkv       2004/06/09 11:21:23

  Modified:    dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
                        PoolableConnectionFactory.java
  Log:
  Bugzilla Bug 29454: No compile under J2SDK 1.3
  - replace the Boolean.valueOf(boolean) method
  
  Revision  Changes    Path
  1.37      +2 -2      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java
  
  Index: BasicDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- BasicDataSource.java	18 May 2004 21:59:53 -0000	1.36
  +++ BasicDataSource.java	9 Jun 2004 18:21:23 -0000	1.37
  @@ -72,7 +72,7 @@
       }
   
       public synchronized void setDefaultReadOnly(boolean defaultReadOnly) {
  -        this.defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        this.defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
           this.restartNeeded = true;
       }
   
  
  
  
  1.23      +7 -7      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
  
  Index: PoolableConnectionFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- PoolableConnectionFactory.java	20 May 2004 13:11:56 -0000	1.22
  +++ PoolableConnectionFactory.java	9 Jun 2004 18:21:23 -0000	1.23
  @@ -48,7 +48,7 @@
           _pool.setFactory(this);
           _stmtPoolFactory = stmtPoolFactory;
           _validationQuery = validationQuery;
  -        _defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        _defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
           _defaultAutoCommit = defaultAutoCommit;
       }
   
  @@ -68,7 +68,7 @@
           _pool.setFactory(this);
           _stmtPoolFactory = stmtPoolFactory;
           _validationQuery = validationQuery;
  -        _defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        _defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
           _defaultAutoCommit = defaultAutoCommit;
           _defaultTransactionIsolation = defaultTransactionIsolation;
       }
  @@ -99,7 +99,7 @@
           _pool.setFactory(this);
           _stmtPoolFactory = stmtPoolFactory;
           _validationQuery = validationQuery;
  -        _defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        _defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
           _defaultAutoCommit = defaultAutoCommit;
       }
   
  @@ -131,7 +131,7 @@
           _pool.setFactory(this);
           _stmtPoolFactory = stmtPoolFactory;
           _validationQuery = validationQuery;
  -        _defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        _defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
           _defaultAutoCommit = defaultAutoCommit;
           _defaultTransactionIsolation = defaultTransactionIsolation;
       }
  @@ -166,7 +166,7 @@
           _pool.setFactory(this);
           _stmtPoolFactory = stmtPoolFactory;
           _validationQuery = validationQuery;
  -        _defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        _defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
           _defaultAutoCommit = defaultAutoCommit;
           _defaultTransactionIsolation = defaultTransactionIsolation;
           _defaultCatalog = defaultCatalog;
  @@ -259,7 +259,7 @@
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        */
       public void setDefaultReadOnly(boolean defaultReadOnly) {
  -        _defaultReadOnly = Boolean.valueOf(defaultReadOnly);
  +        _defaultReadOnly = defaultReadOnly ? Boolean.TRUE : Boolean.FALSE;
       }
   
       /**
  
  
  

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


Mime
View raw message