]> source.dussan.org Git - poi.git/commitdiff
[bug-63187] fix typos
authorPJ Fanning <fanningpj@apache.org>
Mon, 18 Feb 2019 09:56:11 +0000 (09:56 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 18 Feb 2019 09:56:11 +0000 (09:56 +0000)
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
src/java/org/apache/poi/ss/formula/functions/ArrayFunction.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java

index bab3e4e66eaff3c138c780fa852759023e07ee00..7fed4730112b8ef9e92e89bae3e25efdcd039ad5 100644 (file)
@@ -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() + "'");
     }
     
     /**
index 7f8a359d3a0c762826f0edbe4839c596f54084d5..0e842fc5c9f0edbf1c391cdd884f96088bcd7ab3 100644 (file)
@@ -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;
index 150fa83891975c2b967835851e2753e7d9224da6..daae2cc6e46a624071ef10a54d35d17e37b61e9f 100644 (file)
@@ -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;