fix error message

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1828364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2018-04-04 16:55:46 +00:00
parent ba970264dc
commit 9d837397ba
2 changed files with 182 additions and 182 deletions

View File

@ -102,7 +102,7 @@ public final class Offset implements Function {
return false;
}
public String toString() {
StringBuffer sb = new StringBuffer(64);
StringBuilder sb = new StringBuilder(64);
sb.append(getClass().getName()).append(" [");
sb.append(_offset).append("...").append(getLastIndex());
sb.append("]");

View File

@ -156,7 +156,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
Matcher m = NUMBER_EXTRACT_FMT.matcher(str);
if (!m.find())
throw new IllegalArgumentException(
"Cannot find numer in \"" + str + "\"");
"Cannot find number in \"" + str + "\"");
StringBuilder sb = new StringBuilder();
// The groups in the pattern are the parts of the number