Browse Source

[bug-63187] fix typos

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1853787 13f79535-47bb-0310-9956-ffa450edef68
pull/143/head
PJ Fanning 5 years ago
parent
commit
069b4efc4c

+ 1
- 1
src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java View 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() + "'");
}
/**

+ 3
- 3
src/java/org/apache/poi/ss/formula/functions/ArrayFunction.java View 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;

+ 1
- 1
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java View 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;

Loading…
Cancel
Save