From 2aa31b8e6feeaa34f6b0b7b3a567f6e49e6dec45 Mon Sep 17 00:00:00 2001 From: slievrly Date: Tue, 12 Nov 2024 12:58:09 +0800 Subject: [PATCH] fix pmd --- .../apache/seata/server/session/AbstractSessionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/apache/seata/server/session/AbstractSessionManager.java b/server/src/main/java/org/apache/seata/server/session/AbstractSessionManager.java index 28da653bc6c..8b2e7095936 100644 --- a/server/src/main/java/org/apache/seata/server/session/AbstractSessionManager.java +++ b/server/src/main/java/org/apache/seata/server/session/AbstractSessionManager.java @@ -37,7 +37,7 @@ * The type Abstract session manager. */ public abstract class AbstractSessionManager implements SessionManager { - boolean ROLLBACK_FAILED_UNLOCK_ENABLE = ConfigurationFactory.getInstance().getBoolean( + boolean rollbackFailedUnlockEnable = ConfigurationFactory.getInstance().getBoolean( ConfigurationKeys.ROLLBACK_FAILED_UNLOCK_ENABLE, DEFAULT_ROLLBACK_FAILED_UNLOCK_ENABLE); /** @@ -163,7 +163,7 @@ public void onSuccessEnd(GlobalSession globalSession) throws TransactionExceptio @Override public void onFailEnd(GlobalSession globalSession) throws TransactionException { - if (ROLLBACK_FAILED_UNLOCK_ENABLE ) { + if (rollbackFailedUnlockEnable) { globalSession.clean(); LOGGER.info("xid:{} fail end and remove lock, transaction:{}", globalSession.getXid(), globalSession); return;