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 f97deb54640992cee14165acc2cab160f699d847
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 21 19:54:41 2025 +0000

    Use final
---
 .../apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java
 
b/src/main/java/org/apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java
index 9fef3b85..cc8731a9 100644
--- 
a/src/main/java/org/apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java
+++ 
b/src/main/java/org/apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java
@@ -169,18 +169,18 @@ public class DataSourceXAConnectionFactory implements 
XAConnectionFactory {
             // get the real connection and XAResource from the connection
             connection = xaConnection.getConnection();
             xaResource = xaConnection.getXAResource();
-        } catch (SQLException sqle) {
+        } catch (final SQLException sqle) {
             if (connection != null) {
                 try {
                     connection.close();
-                } catch (SQLException ignored) {
+                } catch (final SQLException ignored) {
                     // Ignore
                 }
             }
             if (xaConnection != null) {
                 try {
                     xaConnection.close();
-                } catch (SQLException ignored) {
+                } catch (final SQLException ignored) {
                     // Ignore
                 }
             }

Reply via email to