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 16d25b62af
commit af19295590
2 changed files with 182 additions and 182 deletions

View File

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

View File

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