Made new array fields final

git-svn-id: https://zxing.googlecode.com/svn/trunk@679 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-11-09 16:20:15 +00:00
parent 5f817c69b6
commit 04f17f67a6
6 changed files with 6 additions and 6 deletions

View file

@ -84,7 +84,7 @@ public abstract class AbstractUPCEANReader extends AbstractOneDReader implements
}
}
private StringBuffer decodeRowStringBuffer;
private final StringBuffer decodeRowStringBuffer;
public AbstractUPCEANReader() {
decodeRowStringBuffer = new StringBuffer(20);

View file

@ -62,7 +62,7 @@ public final class EAN13Reader extends AbstractUPCEANReader {
0x00, 0x0B, 0x0D, 0xE, 0x13, 0x19, 0x1C, 0x15, 0x16, 0x1A
};
private int[] decodeMiddleCounters;
private final int[] decodeMiddleCounters;
public EAN13Reader() {
decodeMiddleCounters = new int[4];

View file

@ -27,7 +27,7 @@ import com.google.zxing.common.BitArray;
*/
public final class EAN8Reader extends AbstractUPCEANReader {
private int[] decodeMiddleCounters;
private final int[] decodeMiddleCounters;
public EAN8Reader() {
decodeMiddleCounters = new int[4];

View file

@ -31,7 +31,7 @@ import java.util.Vector;
*/
public final class MultiFormatOneDReader extends AbstractOneDReader {
private Vector readers;
private final Vector readers;
public MultiFormatOneDReader(Hashtable hints) {
Vector possibleFormats = hints == null ? null : (Vector) hints.get(DecodeHintType.POSSIBLE_FORMATS);

View file

@ -34,7 +34,7 @@ import java.util.Vector;
*/
public final class MultiFormatUPCEANReader extends AbstractOneDReader {
private Vector readers;
private final Vector readers;
public MultiFormatUPCEANReader(Hashtable hints) {
Vector possibleFormats = hints == null ? null : (Vector) hints.get(DecodeHintType.POSSIBLE_FORMATS);

View file

@ -46,7 +46,7 @@ public final class UPCEReader extends AbstractUPCEANReader {
{0x07, 0x0B, 0x0D, 0x0E, 0x13, 0x19, 0x1C, 0x15, 0x16, 0x1A}
};
private int[] decodeMiddleCounters;
private final int[] decodeMiddleCounters;
public UPCEReader() {
decodeMiddleCounters = new int[4];