]> source.dussan.org Git - poi.git/commitdiff
revert accidental changes
authorPJ Fanning <fanningpj@apache.org>
Wed, 27 Jul 2022 09:02:15 +0000 (09:02 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 27 Jul 2022 09:02:15 +0000 (09:02 +0000)
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
poi/src/test/java/org/apache/poi/ss/formula/TestFormulaEval.java

index e6403ebaa858c24952decb786fd2209cfe24b266..8a8d391662b5a2802fd5553f1fa691690c599b07 100644 (file)
@@ -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;
index f5d828389d57066857dc635ab9211277cba51754..8c390a0d3377f47b2ec6da2a7f68e260b66ede8f 100644 (file)
@@ -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()) {