Author: markt
Date: Tue Jul 19 21:56:33 2011
New Revision: 1148571

URL: http://svn.apache.org/viewvc?rev=1148571&view=rev
Log:
Generics corrections
PreparedStatement->DelegatingPreparedStatement

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

Modified: 
commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolingConnection.java
URL: 
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolingConnection.java?rev=1148571&r1=1148570&r2=1148571&view=diff
==============================================================================
--- 
commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolingConnection.java
 (original)
+++ 
commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolingConnection.java
 Tue Jul 19 21:56:33 2011
@@ -46,7 +46,7 @@ public class PoolingConnection extends D
         implements 
KeyedPoolableObjectFactory<PStmtKey,DelegatingPreparedStatement> {
 
     /** Pool of {@link PreparedStatement}s. and {@link CallableStatement}s */
-    protected KeyedObjectPool<PStmtKey,PreparedStatement> _pstmtPool = null;
+    protected KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> _pstmtPool 
= null;
 
     /** Prepared Statement type */
     protected static final byte STATEMENT_PREPAREDSTMT = 0;
@@ -65,7 +65,7 @@ public class PoolingConnection extends D
 
 
     public void setStatementPool(
-            KeyedObjectPool<PStmtKey,PreparedStatement> pool) {
+            KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> pool) {
         _pstmtPool = pool;
     }
 
@@ -77,7 +77,7 @@ public class PoolingConnection extends D
     @Override
     public synchronized void close() throws SQLException {
         if(null != _pstmtPool) {
-            KeyedObjectPool<PStmtKey,PreparedStatement> oldpool = _pstmtPool;  
          
+            KeyedObjectPool<PStmtKey,DelegatingPreparedStatement> oldpool = 
_pstmtPool;            
             _pstmtPool = null;
             try {
                 oldpool.close();


Reply via email to