From 749bdfb5a7eeacdb38d67f5f974ecb47f3709bda Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 27 Jul 2022 09:02:15 +0000 Subject: revert accidental changes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903048 13f79535-47bb-0310-9956-ffa450edef68 --- poi/src/main/java/org/apache/poi/ss/formula/WorkbookEvaluator.java | 6 +++--- poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'poi') 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 e6403ebaa8..8a8d391662 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 @@ -75,12 +75,12 @@ public final class WorkbookEvaluator { /** * whether print detailed messages about the next formula evaluation */ - private boolean dbgEvaluationOutputForNextEval = true; + private boolean dbgEvaluationOutputForNextEval; // special logger for formula evaluation output (because of possibly very large output) private final Logger EVAL_LOG = LogManager.getLogger("POI.FormulaEval"); // current indent level for evaluation; negative value for no output - private int dbgEvaluationOutputIndent = 1; + private int dbgEvaluationOutputIndent = -1; /** * @param udfFinder pass {@code null} for default (AnalysisToolPak only) @@ -376,7 +376,7 @@ public final class WorkbookEvaluator { if (dbgEvaluationOutputForNextEval) { // first evaluation call when ouput is desired, so iit. this evaluator instance dbgEvaluationOutputIndent = 1; - //dbgEvaluationOutputForNextEval = true; + dbgEvaluationOutputForNextEval = true; } if (dbgEvaluationOutputIndent > 0) { // init. indent string to needed spaces (create as substring from very long space-only string; diff --git a/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java b/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java index f5d828389d..8c390a0d33 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java @@ -74,7 +74,7 @@ class TestFormulaEval { } } - //@Disabled("currently causes a StackOverflowError") + @Disabled("currently causes a StackOverflowError") @Test void testBug66152() throws IOException { try (HSSFWorkbook wb = new HSSFWorkbook()) { -- cgit v1.2.3