commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1506712 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java
Date Wed, 24 Jul 2013 21:07:47 GMT
Author: markt
Date: Wed Jul 24 21:07:46 2013
New Revision: 1506712

URL: http://svn.apache.org/r1506712
Log:
Java 7 <>

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

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java?rev=1506712&r1=1506711&r2=1506712&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/datasources/CPDSConnectionFactory.java
Wed Jul 24 21:07:46 2013
@@ -63,14 +63,13 @@ class CPDSConnectionFactory
      * Map of PooledConnections for which close events are ignored.
      * Connections are muted when they are being validated.
      */
-    private final Set<PooledConnection> validatingSet =
-        new HashSet<PooledConnection>();
+    private final Set<PooledConnection> validatingSet = new HashSet<>();
 
     /**
      * Map of PooledConnectionAndInfo instances
      */
     private final WeakHashMap<PooledConnection, PooledConnectionAndInfo> pcMap =
-        new WeakHashMap<PooledConnection, PooledConnectionAndInfo>();
+        new WeakHashMap<>();
 
     /**
      * Create a new <tt>PoolableConnectionFactory</tt>.



Mime
View raw message