/*\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
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