From: Axel Howind Date: Wed, 21 Feb 2024 21:04:58 +0000 (+0000) Subject: make loggers static final X-Git-Tag: REL_5_3_0~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb10857970c5013b133ec1cf3b625126e387bdfb;p=poi.git make loggers static final git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915929 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/main/java/org/apache/poi/poifs/filesystem/TempFilePOIFSFileSystem.java b/poi/src/main/java/org/apache/poi/poifs/filesystem/TempFilePOIFSFileSystem.java index 175884c5f8..87b18544f0 100644 --- a/poi/src/main/java/org/apache/poi/poifs/filesystem/TempFilePOIFSFileSystem.java +++ b/poi/src/main/java/org/apache/poi/poifs/filesystem/TempFilePOIFSFileSystem.java @@ -32,7 +32,7 @@ import java.io.IOException; */ @Beta public class TempFilePOIFSFileSystem extends POIFSFileSystem { - private static Logger LOG = LogManager.getLogger(TempFilePOIFSFileSystem.class); + private static final Logger LOG = LogManager.getLogger(TempFilePOIFSFileSystem.class); File tempFile; @Override diff --git a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java index 2d22023426..6d503c7260 100644 --- a/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java +++ b/poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java @@ -78,7 +78,7 @@ public final class WorkbookEvaluator { private boolean dbgEvaluationOutputForNextEval; // special logger for formula evaluation output (because of possibly very large output) - private final Logger EVAL_LOG = LogManager.getLogger("POI.FormulaEval"); + private static final Logger EVAL_LOG = LogManager.getLogger("POI.FormulaEval"); // current indent level for evaluation; negative value for no output private int dbgEvaluationOutputIndent = -1;