commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r734386 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/PooledConnectionProxy.java
Date Wed, 14 Jan 2009 13:27:46 GMT
Author: markt
Date: Wed Jan 14 05:27:38 2009
New Revision: 734386

URL: http://svn.apache.org/viewvc?rev=734386&view=rev
Log:
More build flag fxies. Sorry for the noise.
Build scripts that change the files make getting this right before committing tricky.
This would be a good use case for git.

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

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/PooledConnectionProxy.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/PooledConnectionProxy.java?rev=734386&r1=734385&r2=734386&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/PooledConnectionProxy.java
(original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/datasources/PooledConnectionProxy.java
Wed Jan 14 05:27:38 2009
@@ -74,10 +74,19 @@
         return delegate.getConnection();
     }
 
+    /**
+     * Remove event listeners.
+     */
     public void removeConnectionEventListener(ConnectionEventListener listener) {
         eventListeners.remove(listener);
     }
 
+    /* JDBC_4_ANT_KEY_BEGIN */
+    public void removeStatementEventListener(StatementEventListener listener) {
+        eventListeners.remove(listener);
+    }
+    /* JDBC_4_ANT_KEY_END */
+
     public boolean isNotifyOnClose() {
         return notifyOnClose;
     }
@@ -98,7 +107,7 @@
     }
     
     /**
-     * Add an event listener.
+     * Add event listeners.
      */
     public void addConnectionEventListener(ConnectionEventListener listener) {
         if (!eventListeners.contains(listener)) {
@@ -106,6 +115,13 @@
         }
     }
 
+    /* JDBC_4_ANT_KEY_BEGIN */
+    public void addStatementEventListener(StatementEventListener listener) {
+        if (!eventListeners.contains(listener)) {
+            eventListeners.add(listener);
+        }
+    }
+    /* JDBC_4_ANT_KEY_END */
     
     /**
      * Pass closed events on to listeners
@@ -139,22 +155,4 @@
         return eventListeners;
     }
 
-    /* JDBC_4_ANT_KEY_BEGIN */
-    /**
-     * Add a statement event listener
-     */
-    public void addStatementEventListener(StatementEventListener listener) {
-        if (!eventListeners.contains(listener)) {
-            eventListeners.add(listener);
-        }
-    }
-
-    /**
-     * Remove a statement event listener
-     */
-    public void removeStatementEventListener(StatementEventListener listener) {
-        eventListeners.remove(listener);
-    }
-    /* JDBC_4_ANT_KEY_END */
-
 }



Mime
View raw message