mirror of https://github.com/apache/poi.git
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:
parent
ba970264dc
commit
9d837397ba
|
@ -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("]");
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue