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
The following commit(s) were added to refs/heads/master by this push: new caba7c9 Inline single use variable. caba7c9 is described below commit caba7c9b67d9eb80943cf65e497e02aa43545d71 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Mon Aug 23 13:29:46 2021 -0400 Inline single use variable. --- .../java/org/apache/commons/dbcp2/managed/TransactionRegistry.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/dbcp2/managed/TransactionRegistry.java b/src/main/java/org/apache/commons/dbcp2/managed/TransactionRegistry.java index cbad03d..21f2c09 100644 --- a/src/main/java/org/apache/commons/dbcp2/managed/TransactionRegistry.java +++ b/src/main/java/org/apache/commons/dbcp2/managed/TransactionRegistry.java @@ -152,7 +152,6 @@ public class TransactionRegistry { * A destroyed connection from {@link TransactionRegistry}. */ public synchronized void unregisterConnection(final Connection connection) { - final Connection key = getConnectionKey(connection); - xaResources.remove(key); + xaResources.remove(getConnectionKey(connection)); } }