Turned on ITF support by default. The typical overhead in real world scanning on...
[zxing.git] / core / src / com / google / zxing / oned / UPCAReader.java
index 2cfe59e..634e518 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008 Google Inc.
+ * Copyright 2008 ZXing authors
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import java.util.Hashtable;
  * <p>Implements decoding of the UPC-A format.</p>
  *
  * @author dswitkin@google.com (Daniel Switkin)
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
  */
 public final class UPCAReader implements UPCEANReader {
 
@@ -55,7 +55,7 @@ public final class UPCAReader implements UPCEANReader {
     if (text.charAt(0) == '0') {
       return new Result(text.substring(1), null, result.getResultPoints(), BarcodeFormat.UPC_A);
     } else {
-      throw new ReaderException("Found EAN-13 code but was not a UPC-A code");
+      throw ReaderException.getInstance();
     }
   }