From 37ff2b7fb24114750383cf4c5d0fa56f3e1a7aba Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 18 Feb 2019 09:56:11 +0000 Subject: [PATCH] [bug-63187] fix typos git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1853787 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java | 2 +- .../org/apache/poi/ss/formula/functions/ArrayFunction.java | 6 +++--- .../apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java index bab3e4e66e..7fed473011 100644 --- a/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java +++ b/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java @@ -766,7 +766,7 @@ public final class WorkbookEvaluator { return evaluateNameFormula(nameRecord.getNameDefinition(), ec); } - throw new RuntimeException("Don't now how to evaluate name '" + nameRecord.getNameText() + "'"); + throw new RuntimeException("Don't know how to evaluate name '" + nameRecord.getNameText() + "'"); } /** diff --git a/src/java/org/apache/poi/ss/formula/functions/ArrayFunction.java b/src/java/org/apache/poi/ss/formula/functions/ArrayFunction.java index 7f8a359d3a..0e842fc5c9 100644 --- a/src/java/org/apache/poi/ss/formula/functions/ArrayFunction.java +++ b/src/java/org/apache/poi/ss/formula/functions/ArrayFunction.java @@ -112,7 +112,7 @@ public interface ArrayFunction { } catch (EvaluationException e) { vA = e.getErrorEval(); } catch (RuntimeException e) { - if(e.getMessage().startsWith("Don't now how to evaluate name")){ + if(e.getMessage().startsWith("Don't know how to evaluate name")){ vA = ErrorEval.NAME_INVALID; } else { throw e; @@ -126,7 +126,7 @@ public interface ArrayFunction { } catch (EvaluationException e) { vB = e.getErrorEval(); } catch (RuntimeException e) { - if(e.getMessage().startsWith("Don't now how to evaluate name")){ + if(e.getMessage().startsWith("Don't know how to evaluate name")){ vB = ErrorEval.NAME_INVALID; } else { throw e; @@ -189,7 +189,7 @@ public interface ArrayFunction { } catch (EvaluationException e) { vA = e.getErrorEval(); } catch (RuntimeException e) { - if(e.getMessage().startsWith("Don't now how to evaluate name")){ + if(e.getMessage().startsWith("Don't know how to evaluate name")){ vA = ErrorEval.NAME_INVALID; } else { throw e; diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java index 150fa83891..daae2cc6e4 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java @@ -98,7 +98,7 @@ public final class TestHSSFFormulaEvaluator extends BaseTestFormulaEvaluator { assertEquals(5.33, value.getNumberValue(), 0.0); } catch (RuntimeException e) { - if (e.getMessage().equals("Don't now how to evalate name 'Is_Multicar_Vehicle'")) { + if (e.getMessage().equals("Don't know how to evaluate name 'Is_Multicar_Vehicle'")) { fail("Identified bug 47048a"); } throw e;