Adjust an error message slightly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2019-10-26 05:26:44 +00:00
parent 0498d7ef3a
commit 2dad9b7543
1 changed files with 1 additions and 2 deletions

View File

@ -447,8 +447,7 @@ public final class InternalWorkbook {
} }
if (index > (numfonts - 1)) { if (index > (numfonts - 1)) {
throw new ArrayIndexOutOfBoundsException( throw new ArrayIndexOutOfBoundsException(
"There are only " + numfonts "There are only " + numfonts + " font records, but you asked for index " + idx);
+ " font records, you asked for " + idx);
} }
return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index); return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);