mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
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:
parent
5f817c69b6
commit
04f17f67a6
|
@ -84,7 +84,7 @@ public abstract class AbstractUPCEANReader extends AbstractOneDReader implements
|
|||
}
|
||||
}
|
||||
|
||||
private StringBuffer decodeRowStringBuffer;
|
||||
private final StringBuffer decodeRowStringBuffer;
|
||||
|
||||
public AbstractUPCEANReader() {
|
||||
decodeRowStringBuffer = new StringBuffer(20);
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue