move to singleton ReaderException for a bit more performance
[zxing.git] / core / src / com / google / zxing / oned / UPCEReader.java
index 9acb0bd..f8b885a 100644 (file)
@@ -26,7 +26,7 @@ import com.google.zxing.common.BitArray;
  * <p><a href="http://www.barcodeisland.com/upce.phtml">This</a> is a great reference for
  * UPC-E information.</p>
  *
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
  */
 public final class UPCEReader extends AbstractUPCEANReader {
 
@@ -99,7 +99,7 @@ public final class UPCEReader extends AbstractUPCEANReader {
         }
       }
     }
-    throw new ReaderException("Unable to determine number system and check digit");
+    throw ReaderException.getInstance();
   }
 
   BarcodeFormat getBarcodeFormat() {