move to singleton ReaderException for a bit more performance
[zxing.git] / core / src / com / google / zxing / datamatrix / decoder / Decoder.java
index 5ec86d2..ac83bab 100644 (file)
@@ -119,7 +119,7 @@ public final class Decoder {
     try {\r
       rsDecoder.decode(codewordsInts, numECCodewords);\r
     } catch (ReedSolomonException rse) {\r
-      throw new ReaderException(rse.toString());\r
+      throw ReaderException.getInstance();\r
     }\r
     // Copy back into array of bytes -- only need to worry about the bytes that were data\r
     // We don't care about errors in the error-correction codewords\r