mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
fix javadoc typo
make UT more stringent on PDF417HighLevelEncoder#checkCharset
This commit is contained in:
parent
7cba81bc2e
commit
488aa3368b
|
@ -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++) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue