fix javadoc typo

make UT more stringent on PDF417HighLevelEncoder#checkCharset
This commit is contained in:
ftiercelin 2024-10-22 09:32:16 +01:00
parent 7cba81bc2e
commit 488aa3368b
2 changed files with 2 additions and 2 deletions

View file

@ -288,7 +288,7 @@ final class PDF417HighLevelEncoder {
* @param input the input
* @param max the upper limit for charset
* @param errorMessage the message to explain the error
* @throws WriterException exception highlighting the offending charcater and a suggestion to avoid the error
* @throws WriterException exception highlighting the offending character and a suggestion to avoid the error
*/
protected static void checkCharset(String input,int max, String errorMessage) throws WriterException {
for (int i = 0; i < input.length(); i++) {

View file

@ -88,7 +88,7 @@ public final class PDF417EncoderTestCase extends Assert {
// no exception
PDF417HighLevelEncoder.checkCharset(input,255,errorMessage);
PDF417HighLevelEncoder.checkCharset(input,1255,errorMessage);
PDF417HighLevelEncoder.checkCharset(input,112,errorMessage);
PDF417HighLevelEncoder.checkCharset(input,111,errorMessage);
try {
// should throw an exception for character 'o' because it exceeds upper limit 110