You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/10/31 21:06:55 UTC

svn commit: r1537613 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/PooledConnectionProxy.java

Author: sebb
Date: Thu Oct 31 20:06:55 2013
New Revision: 1537613

URL: http://svn.apache.org/r1537613
Log:
Generics fixes

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

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/PooledConnectionProxy.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/PooledConnectionProxy.java?rev=1537613&r1=1537612&r2=1537613&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/PooledConnectionProxy.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/PooledConnectionProxy.java Thu Oct 31 20:06:55 2013
@@ -21,6 +21,7 @@ import java.sql.Connection;
 import java.sql.SQLException;
 
 import java.util.Collection;
+import java.util.EventListener;
 import java.util.Vector;
 
 import javax.sql.ConnectionEvent;
@@ -45,7 +46,7 @@ public class PooledConnectionProxy imple
     /**
      * ConnectionEventListeners
      */
-    private Vector eventListeners = new Vector();
+    private Vector<EventListener> eventListeners = new Vector<>();
     
     /** 
      * True means we will (dubiously) notify listeners with a
@@ -158,7 +159,7 @@ public class PooledConnectionProxy imple
     /**
      * Expose listeners
      */
-    public Collection getListeners() {
+    public Collection<EventListener> getListeners() {
         return eventListeners;
     }