mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Suppress ignorable unchecked cast warning
git-svn-id: https://zxing.googlecode.com/svn/trunk@2997 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
17f3ab9c7e
commit
373f4f5c39
|
@ -127,7 +127,10 @@ public final class QRCodeMultiReader extends QRCodeReader implements MultipleBar
|
||||||
concatedText.append(saResult.getText());
|
concatedText.append(saResult.getText());
|
||||||
rawBytesLen += saResult.getRawBytes().length;
|
rawBytesLen += saResult.getRawBytes().length;
|
||||||
if (saResult.getResultMetadata().containsKey(ResultMetadataType.BYTE_SEGMENTS)) {
|
if (saResult.getResultMetadata().containsKey(ResultMetadataType.BYTE_SEGMENTS)) {
|
||||||
for (byte[] segment : (Iterable<byte[]>) saResult.getResultMetadata().get(ResultMetadataType.BYTE_SEGMENTS)) {
|
@SuppressWarnings("unchecked")
|
||||||
|
Iterable<byte[]> byteSegments =
|
||||||
|
(Iterable<byte[]>) saResult.getResultMetadata().get(ResultMetadataType.BYTE_SEGMENTS);
|
||||||
|
for (byte[] segment : byteSegments) {
|
||||||
byteSegmentLength += segment.length;
|
byteSegmentLength += segment.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,7 +143,10 @@ public final class QRCodeMultiReader extends QRCodeReader implements MultipleBar
|
||||||
System.arraycopy(saResult.getRawBytes(), 0, newRawBytes, newRawBytesIndex, saResult.getRawBytes().length);
|
System.arraycopy(saResult.getRawBytes(), 0, newRawBytes, newRawBytesIndex, saResult.getRawBytes().length);
|
||||||
newRawBytesIndex += saResult.getRawBytes().length;
|
newRawBytesIndex += saResult.getRawBytes().length;
|
||||||
if (saResult.getResultMetadata().containsKey(ResultMetadataType.BYTE_SEGMENTS)) {
|
if (saResult.getResultMetadata().containsKey(ResultMetadataType.BYTE_SEGMENTS)) {
|
||||||
for (byte[] segment : (Iterable<byte[]>) saResult.getResultMetadata().get(ResultMetadataType.BYTE_SEGMENTS)) {
|
@SuppressWarnings("unchecked")
|
||||||
|
Iterable<byte[]> byteSegments =
|
||||||
|
(Iterable<byte[]>) saResult.getResultMetadata().get(ResultMetadataType.BYTE_SEGMENTS);
|
||||||
|
for (byte[] segment : byteSegments) {
|
||||||
System.arraycopy(segment, 0, newByteSegment, byteSegmentIndex, segment.length);
|
System.arraycopy(segment, 0, newByteSegment, byteSegmentIndex, segment.length);
|
||||||
byteSegmentIndex += segment.length;
|
byteSegmentIndex += segment.length;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue