mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Prevented ISBN parsing from happening twice.
git-svn-id: https://zxing.googlecode.com/svn/trunk@610 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
83c01f0cee
commit
7fe2c1c60c
|
@ -66,6 +66,7 @@ public abstract class ResultParser {
|
|||
} else if ((result = URIResultParser.parse(theResult)) != null) {
|
||||
return result;
|
||||
} else if ((result = ISBNResultParser.parse(theResult)) != null) {
|
||||
// We depend on ISBN parsing coming before UPC, as it is a subset.
|
||||
return result;
|
||||
} else if ((result = UPCResultParser.parse(theResult)) != null) {
|
||||
return result;
|
||||
|
|
|
@ -36,9 +36,6 @@ final class UPCResultParser extends ResultParser {
|
|||
!BarcodeFormat.EAN_8.equals(format) && !BarcodeFormat.EAN_13.equals(format)) {
|
||||
return null;
|
||||
}
|
||||
if (ISBNResultParser.parse(result) != null) {
|
||||
return null;
|
||||
}
|
||||
String rawText = result.getText();
|
||||
if (rawText == null) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue