From d71f40fef65942d98db39ae10d00cb8a7ba9300e Mon Sep 17 00:00:00 2001 From: srowen Date: Sun, 3 Jan 2010 16:15:39 +0000 Subject: [PATCH] Two tiny improvements to make code more consistent git-svn-id: https://zxing.googlecode.com/svn/trunk@1170 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- core/src/com/google/zxing/oned/OneDReader.java | 2 +- core/src/com/google/zxing/oned/UPCEANReader.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/google/zxing/oned/OneDReader.java b/core/src/com/google/zxing/oned/OneDReader.java index b3d4f5eef..347427177 100644 --- a/core/src/com/google/zxing/oned/OneDReader.java +++ b/core/src/com/google/zxing/oned/OneDReader.java @@ -194,7 +194,7 @@ public abstract class OneDReader implements Reader { break; } else { counters[counterPosition] = 1; - isWhite = !isWhite; + isWhite ^= true; // isWhite = !isWhite; } } i++; diff --git a/core/src/com/google/zxing/oned/UPCEANReader.java b/core/src/com/google/zxing/oned/UPCEANReader.java index be4902778..be74932d2 100644 --- a/core/src/com/google/zxing/oned/UPCEANReader.java +++ b/core/src/com/google/zxing/oned/UPCEANReader.java @@ -266,7 +266,7 @@ public abstract class UPCEANReader extends OneDReader { counterPosition++; } counters[counterPosition] = 1; - isWhite = !isWhite; + isWhite ^= true; // isWhite = !isWhite; } } throw ReaderException.getInstance();