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 2023/11/23 13:27:14 UTC

(commons-dbutils) branch master updated (a6cdeab -> c5c0887)

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-dbutils.git


    from a6cdeab  Sort members
     new 7204439  Fix BeanProcessor SpotBugs CT: Be wary of letting constructors throw exceptions. (CT_CONSTRUCTOR_THROW).
     new 1a31f8b  Fix StatementConfiguration SpotBugs CT: Be wary of letting constructors throw exceptions. (CT_CONSTRUCTOR_THROW).
     new c5c0887  Bump commons-parent from 64 to 65

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:
 pom.xml                                                             | 2 +-
 src/changes/changes.xml                                             | 4 +++-
 src/main/java/org/apache/commons/dbutils/BeanProcessor.java         | 6 ++++++
 .../java/org/apache/commons/dbutils/StatementConfiguration.java     | 6 ++++++
 4 files changed, 16 insertions(+), 2 deletions(-)


(commons-dbutils) 01/03: Fix BeanProcessor SpotBugs CT: Be wary of letting constructors throw exceptions. (CT_CONSTRUCTOR_THROW).

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-dbutils.git

commit 72044396930684088bb3845a6b7d12839dfee8ff
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 23 08:25:43 2023 -0500

    Fix BeanProcessor SpotBugs CT: Be wary of letting constructors throw
    exceptions. (CT_CONSTRUCTOR_THROW).
---
 src/main/java/org/apache/commons/dbutils/BeanProcessor.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/org/apache/commons/dbutils/BeanProcessor.java b/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
index 2d0b07c..18240ee 100644
--- a/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
+++ b/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
@@ -165,6 +165,12 @@ public class BeanProcessor {
         return populateBean(resultSet, this.newInstance(type), props, columnToProperty);
     }
 
+    /** Does nothing. */
+    @Override
+    protected final void finalize() {
+        // SpotBugs CT_CONSTRUCTOR_THROW
+    }
+
     /**
      * Gets the write method to use when setting {@code value} to the {@code target}.
      *


(commons-dbutils) 03/03: Bump commons-parent from 64 to 65

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-dbutils.git

commit c5c08879de874f01fc563c44eaa39c5a5e978405
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 23 08:27:10 2023 -0500

    Bump commons-parent from 64 to 65
---
 pom.xml                 | 2 +-
 src/changes/changes.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index f4d8392..d9d3694 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
   <parent>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-parent</artifactId>
-    <version>64</version>
+    <version>65</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>commons-dbutils</groupId>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index f17fb7d..4f6bf90 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -52,7 +52,7 @@ The <action> type attribute can be add,update,fix,remove.
       <!-- ADD -->
       <!-- UPDATE -->
       <action dev="ggregory" type="update" due-to="Gary Gregory">Bump Java from 8 to 11.</action>
-      <action dev="ggregory" type="update" due-to="Gary Gregory">Bump commons-parent from 62 to 64.</action>
+      <action dev="ggregory" type="update" due-to="Gary Gregory">Bump commons-parent from 62 to 65.</action>
     </release>
     <release version="1.8.1" date="2023-09-09" description="New features and bug fixes.">
       <!-- FIX -->


(commons-dbutils) 02/03: Fix StatementConfiguration SpotBugs CT: Be wary of letting constructors throw exceptions. (CT_CONSTRUCTOR_THROW).

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-dbutils.git

commit 1a31f8b70c1453e72b3d25051ddb3d2109e649fb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 23 08:25:55 2023 -0500

    Fix StatementConfiguration SpotBugs CT: Be wary of letting constructors
    throw exceptions. (CT_CONSTRUCTOR_THROW).
---
 src/changes/changes.xml                                             | 2 ++
 .../java/org/apache/commons/dbutils/StatementConfiguration.java     | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 44d520b..f17fb7d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -47,6 +47,8 @@ The <action> type attribute can be add,update,fix,remove.
       <!-- FIX -->
       <action dev="ggregory" type="update" due-to="sanjanarampurkottur01, Gary Gregory">Switch on String instead of cascading if-else in MockResultSet #220.</action>
       <action dev="ggregory" type="update" due-to="sanjanarampurkottur01, Gary Gregory">Encapsulate test fields #222.</action>
+      <action dev="ggregory" type="update" due-to="Gary Gregory">Fix BeanProcessor SpotBugs CT: Be wary of letting constructors throw exceptions. (CT_CONSTRUCTOR_THROW).</action>
+      <action dev="ggregory" type="update" due-to="Gary Gregory">Fix StatementConfiguration SpotBugs CT: Be wary of letting constructors throw exceptions. (CT_CONSTRUCTOR_THROW).</action>
       <!-- ADD -->
       <!-- UPDATE -->
       <action dev="ggregory" type="update" due-to="Gary Gregory">Bump Java from 8 to 11.</action>
diff --git a/src/main/java/org/apache/commons/dbutils/StatementConfiguration.java b/src/main/java/org/apache/commons/dbutils/StatementConfiguration.java
index da10a3d..6793b86 100644
--- a/src/main/java/org/apache/commons/dbutils/StatementConfiguration.java
+++ b/src/main/java/org/apache/commons/dbutils/StatementConfiguration.java
@@ -149,6 +149,12 @@ public class StatementConfiguration {
         this(fetchDirection, fetchSize, maxFieldSize, maxRows, Duration.ofSeconds(queryTimeout));
     }
 
+    /** Does nothing. */
+    @Override
+    protected final void finalize() {
+        // SpotBugs CT_CONSTRUCTOR_THROW
+    }
+
     /**
      * Gets the fetch direction.
      *