Tiny style bits
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 13 Aug 2010 17:17:47 +0000 (17:17 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Fri, 13 Aug 2010 17:17:47 +0000 (17:17 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@1528 59b500cc-1b3d-0410-9834-0bbf25fbcc57

core/src/com/google/zxing/client/result/ExpandedProductResultParser.java
core/src/com/google/zxing/qrcode/decoder/Decoder.java
core/src/com/google/zxing/qrcode/detector/Detector.java
core/src/com/google/zxing/qrcode/encoder/Encoder.java

index 3e3fd51..cddbda8 100644 (file)
@@ -186,7 +186,7 @@ final class ExpandedProductResultParser extends ResultParser {
         // We look for a new AI. If it doesn't exist (ERROR), we coninue
         // with the iteration
         if ("ERROR".equals(findAIvalue(index, rawTextAux))) {
-          buf.append(c);
+          buf.append('(');
         } else {
           break;
         }
index f7d5273..22cdeb0 100644 (file)
@@ -79,12 +79,10 @@ public final class Decoder {
    *\r
    * @param bits booleans representing white/black QR Code modules\r
    * @return text and bytes encoded within the QR Code\r
-   * @throws NotFoundException if the QR Code cannot be found\r
    * @throws FormatException if the QR Code cannot be decoded\r
    * @throws ChecksumException if error correction fails\r
    */\r
-  public DecoderResult decode(BitMatrix bits, Hashtable hints)\r
-      throws NotFoundException, FormatException, ChecksumException {\r
+  public DecoderResult decode(BitMatrix bits, Hashtable hints) throws FormatException, ChecksumException {\r
 \r
     // Construct a parser and read version, error-correction level\r
     BitMatrixParser parser = new BitMatrixParser(bits);\r
index b9d7f2c..c67b768 100644 (file)
@@ -160,7 +160,7 @@ public class Detector {
       sourceBottomRightX = sourceBottomRightY = dimMinusThree;
     }
 
-    PerspectiveTransform transform = PerspectiveTransform.quadrilateralToQuadrilateral(
+    return PerspectiveTransform.quadrilateralToQuadrilateral(
         3.5f,
         3.5f,
         dimMinusThree,
@@ -177,8 +177,6 @@ public class Detector {
         bottomRightY,
         bottomLeft.getX(),
         bottomLeft.getY());
-
-    return transform;
   }
 
   private static BitMatrix sampleGrid(BitMatrix image,
index 2217b36..a8b9dae 100644 (file)
@@ -20,6 +20,7 @@ import com.google.zxing.EncodeHintType;
 import com.google.zxing.WriterException;
 import com.google.zxing.common.BitArray;
 import com.google.zxing.common.CharacterSetECI;
+import com.google.zxing.common.ECI;
 import com.google.zxing.common.reedsolomon.GF256;
 import com.google.zxing.common.reedsolomon.ReedSolomonEncoder;
 import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
@@ -547,7 +548,7 @@ public final class Encoder {
     }
   }
 
-  private static void appendECI(CharacterSetECI eci, BitArray bits) {
+  private static void appendECI(ECI eci, BitArray bits) {
     bits.appendBits(Mode.ECI.getBits(), 4);
     // This is correct for values up to 127, which is all we need now.
     bits.appendBits(eci.getValue(), 8);