mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Minor change to avoid using synthetic accessor for private member
git-svn-id: https://zxing.googlecode.com/svn/trunk@243 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
778e3ef688
commit
e3d418f458
|
@ -57,12 +57,11 @@ public final class Version {
|
||||||
this.alignmentPatternCenters = alignmentPatternCenters;
|
this.alignmentPatternCenters = alignmentPatternCenters;
|
||||||
this.ecBlocks = new ECBlocks[]{ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4};
|
this.ecBlocks = new ECBlocks[]{ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4};
|
||||||
int total = 0;
|
int total = 0;
|
||||||
ECBlocks levelLECBlocks = ecBlocks1; // L,M,Q,H -- all the same total
|
int ecCodewords = ecBlocks1.getECCodewords();
|
||||||
int ecCodewords = levelLECBlocks.ecCodewords;
|
ECB[] ecbArray = ecBlocks1.getECBlocks();
|
||||||
ECB[] ecbArray = levelLECBlocks.ecBlocks;
|
|
||||||
for (int i = 0; i < ecbArray.length; i++) {
|
for (int i = 0; i < ecbArray.length; i++) {
|
||||||
ECB ecBlock = ecbArray[i];
|
ECB ecBlock = ecbArray[i];
|
||||||
total += ecBlock.count * (ecBlock.dataCodewords + ecCodewords);
|
total += ecBlock.getCount() * (ecBlock.getDataCodewords() + ecCodewords);
|
||||||
}
|
}
|
||||||
this.totalCodewords = total;
|
this.totalCodewords = total;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue