You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/05/31 22:16:43 UTC

[commons-dbcp] branch master updated (0658749 -> c863d75)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git.


    from 0658749  Add missing Javadoc.
     new 1aa2ba6  Javadoc.
     new 5585527  Remove unused local var.
     new c863d75  Javadoc.

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java       | 2 +-
 src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java | 6 ++++++
 src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java  | 1 -
 3 files changed, 7 insertions(+), 2 deletions(-)

[commons-dbcp] 03/03: Javadoc.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git

commit c863d75359f2799ed92f9433dac9c88ee06dc63c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 31 18:16:40 2021 -0400

    Javadoc.
---
 src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java b/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
index cd8b0fb..7d244c5 100644
--- a/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
+++ b/src/main/java/org/apache/commons/dbcp2/AbandonedTrace.java
@@ -25,7 +25,7 @@ import java.util.List;
 import org.apache.commons.pool2.TrackedUse;
 
 /**
- * Tracks db connection usage for recovering and reporting abandoned db connections.
+ * Tracks connection usage for recovering and reporting abandoned connections.
  * <p>
  * The JDBC Connection, Statement, and ResultSet classes extend this class.
  * </p>

[commons-dbcp] 02/03: Remove unused local var.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git

commit 5585527659bc52a1c2087d8773c6f7b37db2fbb4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 31 18:16:28 2021 -0400

    Remove unused local var.
---
 src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java b/src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java
index d9422e2..467ad9c 100644
--- a/src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java
+++ b/src/main/java/org/apache/commons/dbcp2/DelegatingStatement.java
@@ -139,7 +139,6 @@ public class DelegatingStatement extends AbandonedTrace implements Statement {
             // See bug 17301 for what could happen when ResultSets are closed twice.
             final List<AbandonedTrace> resultSetList = getTrace();
             if (resultSetList != null) {
-                final int size = resultSetList.size();
                 final ResultSet[] resultSets = resultSetList.toArray(Utils.EMPTY_RESULT_SET_ARRAY);
                 for (final ResultSet resultSet : resultSets) {
                     if (resultSet != null) {

[commons-dbcp] 01/03: Javadoc.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git

commit 1aa2ba6cfe16a0815517173ed58f7be8e15eda1e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 31 18:10:29 2021 -0400

    Javadoc.
---
 src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java b/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
index 70852ee..2080716 100644
--- a/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
+++ b/src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java
@@ -242,6 +242,12 @@ public class DelegatingConnection<C extends Connection> extends AbandonedTrace i
         }
     }
 
+    /**
+     * Handles the given exception by throwing it.
+     * 
+     * @param e the exception to throw.
+     * @throws SQLException the exception to throw.
+     */
     protected void handleException(final SQLException e) throws SQLException {
         throw e;
     }