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:
srowen 2008-03-04 16:35:22 +00:00
parent 778e3ef688
commit e3d418f458

View file

@ -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;
}