mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Issue 1122 allow short code 39/93
git-svn-id: https://zxing.googlecode.com/svn/trunk@2114 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
73f7332f02
commit
748945281c
|
@ -431,7 +431,7 @@ public final class Code128Reader extends OneDReader {
|
|||
int resultLength = result.length();
|
||||
if (resultLength == 0) {
|
||||
// false positive
|
||||
throw ChecksumException.getChecksumInstance();
|
||||
throw NotFoundException.getNotFoundInstance();
|
||||
}
|
||||
|
||||
// Only bother if the result had at least one character, and if the checksum digit happened to
|
||||
|
|
|
@ -146,8 +146,8 @@ public final class Code39Reader extends OneDReader {
|
|||
result.setLength(max);
|
||||
}
|
||||
|
||||
if (result.length() < 4) {
|
||||
// Almost surely a false positive
|
||||
if (result.length() == 0) {
|
||||
// false positive
|
||||
throw NotFoundException.getNotFoundInstance();
|
||||
}
|
||||
|
||||
|
|
|
@ -88,8 +88,8 @@ public final class Code93Reader extends OneDReader {
|
|||
throw NotFoundException.getNotFoundInstance();
|
||||
}
|
||||
|
||||
if (result.length() < 4) {
|
||||
// Almost surely a false positive
|
||||
if (result.length() < 2) {
|
||||
// false positive -- need at least 2 checksum digits
|
||||
throw NotFoundException.getNotFoundInstance();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue