mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Two tiny improvements to make code more consistent
git-svn-id: https://zxing.googlecode.com/svn/trunk@1170 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
a5c6c1c0ff
commit
d71f40fef6
|
@ -194,7 +194,7 @@ public abstract class OneDReader implements Reader {
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
counters[counterPosition] = 1;
|
counters[counterPosition] = 1;
|
||||||
isWhite = !isWhite;
|
isWhite ^= true; // isWhite = !isWhite;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|
|
@ -266,7 +266,7 @@ public abstract class UPCEANReader extends OneDReader {
|
||||||
counterPosition++;
|
counterPosition++;
|
||||||
}
|
}
|
||||||
counters[counterPosition] = 1;
|
counters[counterPosition] = 1;
|
||||||
isWhite = !isWhite;
|
isWhite ^= true; // isWhite = !isWhite;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw ReaderException.getInstance();
|
throw ReaderException.getInstance();
|
||||||
|
|
Loading…
Reference in a new issue