Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader (#1839)
Some checks failed
Test Java 21 / build (push) Has been cancelled
Test Java 8 / build (push) Has been cancelled
CodeQL / Analyze (java) (push) Has been cancelled
Test Java 17 / build (push) Has been cancelled

This commit is contained in:
xiebaiyuan 2024-08-02 09:57:31 +08:00 committed by GitHub
parent 6ea3726b33
commit 8944e60778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,6 +83,9 @@ public final class QRCodeMultiReader extends QRCodeReader implements MultipleBar
result.putMetadata(ResultMetadataType.STRUCTURED_APPEND_PARITY,
decoderResult.getStructuredAppendParity());
}
// Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader
result.putMetadata(ResultMetadataType.SYMBOLOGY_IDENTIFIER, "]Q" + decoderResult.getSymbologyModifier());
results.add(result);
} catch (ReaderException re) {
// ignore and continue