mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue #63 : minor formatting and doc changes
This commit is contained in:
parent
347813c971
commit
bd4536f077
|
@ -90,12 +90,13 @@ public enum DecodeHintType {
|
|||
|
||||
|
||||
/**
|
||||
* Allowed extension lengths for EAN or UPC barcodes.
|
||||
* Other formats will ignore this.
|
||||
* Allowed extension lengths for EAN or UPC barcodes. Other formats will ignore this.
|
||||
* Maps to an {@code int[]} of the allowed extension lengths, for example [2], [5], or [2, 5].
|
||||
* If it is optional to have an extension, do not set this hint.
|
||||
* If it is optional to have an extension, do not set this hint. If this is set,
|
||||
* and a UPC or EAN barcode is found but an extension is not, then no result will be returned
|
||||
* at all.
|
||||
*/
|
||||
ALLOWED_EAN_EXTENSIONS(int[].class);
|
||||
ALLOWED_EAN_EXTENSIONS(int[].class),
|
||||
|
||||
// End of enumeration values.
|
||||
;
|
||||
|
|
|
@ -206,8 +206,8 @@ public abstract class UPCEANReader extends OneDReader {
|
|||
// continue
|
||||
}
|
||||
|
||||
int[] allowedExtensions = hints == null ? null :
|
||||
(int[])hints.get(DecodeHintType.ALLOWED_EAN_EXTENSIONS);
|
||||
int[] allowedExtensions =
|
||||
hints == null ? null : (int[]) hints.get(DecodeHintType.ALLOWED_EAN_EXTENSIONS);
|
||||
if (allowedExtensions != null) {
|
||||
boolean valid = false;
|
||||
for (int length : allowedExtensions) {
|
||||
|
|
Loading…
Reference in a new issue