Skip to content

Commit

Permalink
refs #65 fix message type miss.
Browse files Browse the repository at this point in the history
  • Loading branch information
mygreen committed Mar 12, 2016
1 parent d0b2648 commit bc03465
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ private Point getCellPosition(final XlsCell anno) throws AnnotationInvalidExcept
} else {
if(anno.row() < 0 || anno.column() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsCell#column or row soulde be greather than or equal zero. (colunm=%d, row=%d)",
anno.row(), anno.column()), anno);
String.format("@XlsCell#column or row sould be greater than or equal zero. (column=%d, row=%d)",
anno.column(), anno.row()), anno);
}
return new Point(anno.column(), anno.row());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private Point getHeaderPosition(final Sheet sheet, final XlsHorizontalRecords an
final Point address = Utils.parseCellAddress(anno.headerAddress());
if(address == null) {
throw new AnnotationInvalidException(
String.format("@XlsHorizontalRecors#headerAddress is wrong cell address '%s'.", anno.headerAddress()), anno);
String.format("@XlsHorizontalRecords#headerAddress is wrong cell address '%s'.", anno.headerAddress()), anno);
}

return address;
Expand All @@ -359,7 +359,7 @@ private Point getHeaderPosition(final Sheet sheet, final XlsHorizontalRecords an
// column, rowのアドレスを直接指定の場合
if(anno.headerColumn() < 0 || anno.headerRow() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsHorizontalRecors#headerColumn or headerRow soulde be greather than or equal zero. (headerColulmn=%d, headerRow=%d)",
String.format("@XlsHorizontalRecors#headerColumn or headerRow should be greater than or equal zero. (headerColumn=%d, headerRow=%d)",
anno.headerColumn(), anno.headerRow()), anno);
}

Expand Down Expand Up @@ -522,7 +522,7 @@ public void saveProcess(final Sheet sheet, final Object obj, final XlsHorizontal

} else {
throw new AnnotationInvalidException(
String.format("Annotation '@%s' should only granted List or Array. : %s",
String.format("Annotation '@%s' should only granted Collection(List/Set) or array. : %s",
XlsHorizontalRecords.class.getSimpleName(), clazz.getName()),
anno);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private Point getLabelPosition(final Sheet sheet, final XlsLabelledCell anno, fi
// column, rowのアドレスを直接指定の場合
if(anno.labelColumn() < 0 || anno.labelRow() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsLabelledCell#labelColumn or labelRow soulde be greather than or equal zero. (headerColulmn=%d, headerRow=%d)",
String.format("@XlsLabelledCell#labelColumn or labelRow should be greater than or equal zero. (labelColumn=%d, labelRow=%d)",
anno.labelColumn(), anno.labelRow()), anno);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ private Point getHeaderPosition(final Sheet sheet, final XlsVerticalRecords anno
} else {
if(anno.headerColumn() < 0 || anno.headerRow() < 0) {
throw new AnnotationInvalidException(
String.format("@XlsVerticalRecords#headerColumn or headerRow soulde be greather than or equal zero. (headerColulmn=%d, headerRow=%d)",
String.format("@XlsVerticalRecords#headerColumn or headerRow should be greater than or equal zero. (headerColumn=%d, headerRow=%d)",
anno.headerColumn(), anno.headerRow()), anno);
}
return new Point(anno.headerColumn(), anno.headerRow());
Expand Down Expand Up @@ -527,7 +527,7 @@ public void saveProcess(final Sheet sheet, final Object obj, final XlsVerticalRe

} else {
throw new AnnotationInvalidException(
String.format("Annotation '@%s' should only granted List or Array. : %s",
String.format("Annotation '@%s' should only granted Collection(List/Set) or array. : %s",
XlsVerticalRecords.class.getSimpleName(), clazz.getName()),
anno);
}
Expand Down

0 comments on commit bc03465

Please sign in to comment.