mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Caught a few J2ME incompatibilities in build
git-svn-id: https://zxing.googlecode.com/svn/trunk@1235 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
8691b5a819
commit
0c54a9f45b
|
@ -95,7 +95,7 @@ public abstract class GridSampler {
|
|||
public BitMatrix sampleGrid(BitMatrix image,
|
||||
int dimension,
|
||||
PerspectiveTransform transform) throws NotFoundException {
|
||||
throw new UnsupportedOperationException();
|
||||
throw new IllegalStateException(); // Can't use UnsupportedOperationException
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -81,12 +81,12 @@ public final class RSS14Reader extends OneDReader {
|
|||
public Result decodeRow(int rowNumber, BitArray row, Hashtable hints) throws NotFoundException {
|
||||
Pair leftPair = decodePair(row, false, rowNumber, hints);
|
||||
if (leftPair != null) {
|
||||
possibleLeftPairs.add(leftPair);
|
||||
possibleLeftPairs.addElement(leftPair);
|
||||
}
|
||||
row.reverse();
|
||||
Pair rightPair = decodePair(row, true, rowNumber, hints);
|
||||
if (rightPair != null) {
|
||||
possibleRightPairs.add(rightPair);
|
||||
possibleRightPairs.addElement(rightPair);
|
||||
}
|
||||
row.reverse();
|
||||
int numLeftPairs = possibleLeftPairs.size();
|
||||
|
@ -104,8 +104,8 @@ public final class RSS14Reader extends OneDReader {
|
|||
}
|
||||
|
||||
public void reset() {
|
||||
possibleLeftPairs.clear();
|
||||
possibleRightPairs.clear();
|
||||
possibleLeftPairs.setSize(0);
|
||||
possibleRightPairs.setSize(0);
|
||||
}
|
||||
|
||||
private static Result constructResult(Pair leftPair, Pair rightPair) {
|
||||
|
|
Loading…
Reference in a new issue