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 2025/11/21 20:30:27 UTC
(commons-dbcp) 03/15: Use final
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 <ga...@gmail.com>
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
}
}