This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 2fc450548967b32b4a2c77ce809e35ec32c82210
Author: John Engebretson <[email protected]>
AuthorDate: Thu Feb 29 15:27:36 2024 +0000

    Replacing lost finals
---
 log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java 
b/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
index b885757287..52fb10571c 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/ThreadContext.java
@@ -212,9 +212,9 @@ public final class ThreadContext {
         ThreadContextMapFactory.init();
         contextMap = null;
         final PropertiesUtil managerProps = PropertiesUtil.getProperties();
-        boolean disableAll = managerProps.getBooleanProperty(DISABLE_ALL);
+        final boolean disableAll = 
managerProps.getBooleanProperty(DISABLE_ALL);
         useStack = !(managerProps.getBooleanProperty(DISABLE_STACK) || 
disableAll);
-        boolean useMap = !(managerProps.getBooleanProperty(DISABLE_MAP) || 
disableAll);
+        final boolean useMap = !(managerProps.getBooleanProperty(DISABLE_MAP) 
|| disableAll);
 
         contextStack = new DefaultThreadContextStack(useStack);
         if (!useMap) {

Reply via email to