Standardize array initializer syntax to use the form without "new type[]", to be...
[zxing.git] / core / test / src / com / google / zxing / datamatrix / decoder / DecodedBitStreamParserTestCase.java
index dd3380a..a4d6273 100644 (file)
@@ -27,16 +27,16 @@ public final class DecodedBitStreamParserTestCase extends TestCase{
 
   public void testAsciiStandardDecode() throws ReaderException {
     // ASCII characters 0-127 are encoded as the value + 1
-    byte[] bytes = new byte[]{(byte) ('a' + 1), (byte) ('b' + 1), (byte) ('c' + 1),
-                              (byte) ('A' + 1), (byte) ('B' + 1), (byte) ('C' + 1)};
+    byte[] bytes = {(byte) ('a' + 1), (byte) ('b' + 1), (byte) ('c' + 1),
+                    (byte) ('A' + 1), (byte) ('B' + 1), (byte) ('C' + 1)};
     String decodedString = DecodedBitStreamParser.decode(bytes);
     assertEquals("abcABC", decodedString);
   }
   
   public void testAsciiDoubleDigitDecode() throws ReaderException{
     // ASCII double digit (00 - 99) Numeric Value + 130
-    byte[] bytes = new byte[]{(byte) (00 + 130), (byte) (01 + 130),
-                              (byte) (98 + 130), (byte) (99 + 130)};
+    byte[] bytes = {(byte)       130 , (byte) ( 1 + 130),
+                    (byte) (98 + 130), (byte) (99 + 130)};
     String decodedString = DecodedBitStreamParser.decode(bytes);
     assertEquals("00019899", decodedString);
   }