\r
// Construct a parser and read version, error-correction level\r
BitMatrixParser parser = new BitMatrixParser(bits);\r
- Version version = parser.readVersion(bits);\r
+ Version version = parser.getVersion();\r
\r
// Read codewords\r
byte[] codewords = parser.readCodewords();\r