commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1547617 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java
Date Tue, 03 Dec 2013 22:28:44 GMT
Author: markt
Date: Tue Dec  3 22:28:44 2013
New Revision: 1547617

URL: http://svn.apache.org/r1547617
Log:
Fix the generics warnings in ManagedDataSource

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java?rev=1547617&r1=1547616&r2=1547617&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/managed/ManagedDataSource.java
Tue Dec  3 22:28:44 2013
@@ -76,7 +76,7 @@ public class ManagedDataSource<C extends
         if (_pool == null) throw new IllegalStateException("Pool has not been set");
         if (transactionRegistry == null) throw new IllegalStateException("TransactionRegistry
has not been set");
 
-        Connection connection = new ManagedConnection(_pool, transactionRegistry, isAccessToUnderlyingConnectionAllowed());
+        Connection connection = new ManagedConnection<>(_pool, transactionRegistry,
isAccessToUnderlyingConnectionAllowed());
         return connection;
     }
 }



Mime
View raw message