mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 11:47:26 -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.ecBlocks = new ECBlocks[]{ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4};
|
||||
int total = 0;
|
||||
ECBlocks levelLECBlocks = ecBlocks1; // L,M,Q,H -- all the same total
|
||||
int ecCodewords = levelLECBlocks.ecCodewords;
|
||||
ECB[] ecbArray = levelLECBlocks.ecBlocks;
|
||||
int ecCodewords = ecBlocks1.getECCodewords();
|
||||
ECB[] ecbArray = ecBlocks1.getECBlocks();
|
||||
for (int i = 0; i < ecbArray.length; i++) {
|
||||
ECB ecBlock = ecbArray[i];
|
||||
total += ecBlock.count * (ecBlock.dataCodewords + ecCodewords);
|
||||
total += ecBlock.getCount() * (ecBlock.getDataCodewords() + ecCodewords);
|
||||
}
|
||||
this.totalCodewords = total;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue