commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1136171 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
Date Wed, 15 Jun 2011 20:19:52 GMT
Author: psteitz
Date: Wed Jun 15 20:19:52 2011
New Revision: 1136171

URL: http://svn.apache.org/viewvc?rev=1136171&view=rev
Log:
Updated to reflect pool2 API change (and avoid NPE).

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java?rev=1136171&r1=1136170&r2=1136171&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/PerUserPoolDataSource.java
Wed Jun 15 20:19:52 2011
@@ -507,7 +507,7 @@ public class PerUserPoolDataSource
             getDefaultMaxWait() : userMax.intValue();
 
         // Create an object pool to contain our PooledConnections
-        GenericObjectPool pool = new GenericObjectPool(null);
+        GenericObjectPool pool = new GenericObjectPool();
         pool.setMaxTotal(maxTotal);
         pool.setMaxIdle(maxIdle);
         pool.setMaxWait(maxWait);



Mime
View raw message