commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1084406 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java
Date Tue, 22 Mar 2011 23:13:42 GMT
Author: sebb
Date: Tue Mar 22 23:13:41 2011
New Revision: 1084406

URL: http://svn.apache.org/viewvc?rev=1084406&view=rev
Log:
Unnecessary cast

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java?rev=1084406&r1=1084405&r2=1084406&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java
Tue Mar 22 23:13:41 2011
@@ -416,7 +416,7 @@ public class PerUserPoolDataSource
                 throw new SQLNestedException("RegisterPool failed", ne);
             }
             try {
-                info = (PooledConnectionAndInfo)((ObjectPool) pool).borrowObject();
+                info = (PooledConnectionAndInfo)pool.borrowObject();
             } catch (Exception ex) {
                 throw (SQLException) new SQLException(
                 "Could not retrieve connection info from pool").initCause(ex);



Mime
View raw message