Skip to content

Commit 8991501

Browse files
committed
Keep PMD happy
1 parent 4c81b6c commit 8991501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/dbcp2/managed/DataSourceXAConnectionFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ public Connection createConnection() throws SQLException {
173173
if (connection != null) {
174174
try {
175175
connection.close();
176-
} catch (SQLException e) {
176+
} catch (SQLException ignored) {
177177
// Ignore
178178
}
179179
}
180180
if (xaConnection != null) {
181181
try {
182182
xaConnection.close();
183-
} catch (SQLException e) {
183+
} catch (SQLException ignored) {
184184
// Ignore
185185
}
186186
}

0 commit comments

Comments
 (0)