/*\r
- * Copyright 2007 Google Inc.\r
+ * Copyright 2007 ZXing authors\r
*\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
* @param version version of the QR Code\r
* @param ecLevel error-correction level of the QR Code\r
* @return {@link DataBlock}s containing original bytes, "de-interleaved" from representation in the\r
- * QR Code\r
+ * QR Code\r
*/\r
static DataBlock[] getDataBlocks(byte[] rawCodewords,\r
Version version,\r
break;\r
}\r
if (numCodewords != shorterBlocksTotalCodewords + 1) {\r
- throw new IllegalStateException("Data block sizes differ by more than 1");\r
+ throw new IllegalArgumentException("Data block sizes differ by more than 1");\r
}\r
longerBlocksStartAt--;\r
}\r
}\r
\r
if (rawCodewordsOffset != rawCodewords.length) {\r
- throw new IllegalStateException();\r
+ throw new IllegalArgumentException();\r
}\r
\r
return result;\r