False positive avoidance

git-svn-id: https://zxing.googlecode.com/svn/trunk@1885 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-08-14 17:45:31 +00:00
parent 4863e3ed8c
commit ecd6a7d77d
2 changed files with 2 additions and 2 deletions

View file

@ -448,7 +448,7 @@ public final class Code128Reader extends OneDReader {
String resultString = result.toString();
if (resultString.length() == 0) {
if (resultString.length() < 2) {
// Almost surely a false positive
throw FormatException.getFormatInstance();
}

View file

@ -92,7 +92,7 @@ public final class Code93Reader extends OneDReader {
throw NotFoundException.getNotFoundInstance();
}
if (result.length() < 2) {
if (result.length() < 4) {
// Almost surely a false positive
throw NotFoundException.getNotFoundInstance();
}