mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Clean up whitespace (#800)
This commit is contained in:
parent
5a5237b4a8
commit
7df4aa6694
|
@ -64,7 +64,7 @@ public enum ResultMetadataType {
|
||||||
* For some products, indicates the suggested retail price in the barcode as a
|
* For some products, indicates the suggested retail price in the barcode as a
|
||||||
* formatted {@link String}.
|
* formatted {@link String}.
|
||||||
*/
|
*/
|
||||||
SUGGESTED_PRICE ,
|
SUGGESTED_PRICE,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For some products, the possible country of manufacture as a {@link String} denoting the
|
* For some products, the possible country of manufacture as a {@link String} denoting the
|
||||||
|
|
|
@ -107,7 +107,6 @@ public class ResultPoint {
|
||||||
patterns[2] = pointC;
|
patterns[2] = pointC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param pattern1 first pattern
|
* @param pattern1 first pattern
|
||||||
* @param pattern2 second pattern
|
* @param pattern2 second pattern
|
||||||
|
@ -128,5 +127,4 @@ public class ResultPoint {
|
||||||
return ((pointC.x - bX) * (pointA.y - bY)) - ((pointC.y - bY) * (pointA.x - bX));
|
return ((pointC.x - bX) * (pointA.y - bY)) - ((pointC.y - bY) * (pointA.x - bX));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ public final class PerspectiveTransform {
|
||||||
|
|
||||||
public void transformPoints(float[] xValues, float[] yValues) {
|
public void transformPoints(float[] xValues, float[] yValues) {
|
||||||
int n = xValues.length;
|
int n = xValues.length;
|
||||||
for (int i = 0; i < n; i ++) {
|
for (int i = 0; i < n; i++) {
|
||||||
float x = xValues[i];
|
float x = xValues[i];
|
||||||
float y = yValues[i];
|
float y = yValues[i];
|
||||||
float denominator = a13 * x + a23 * y + a33;
|
float denominator = a13 * x + a23 * y + a33;
|
||||||
|
|
|
@ -39,7 +39,7 @@ public final class StringUtils {
|
||||||
SHIFT_JIS.equalsIgnoreCase(PLATFORM_DEFAULT_ENCODING) ||
|
SHIFT_JIS.equalsIgnoreCase(PLATFORM_DEFAULT_ENCODING) ||
|
||||||
EUC_JP.equalsIgnoreCase(PLATFORM_DEFAULT_ENCODING);
|
EUC_JP.equalsIgnoreCase(PLATFORM_DEFAULT_ENCODING);
|
||||||
|
|
||||||
private StringUtils() {}
|
private StringUtils() { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param bytes bytes encoding a string, whose encoding should be guessed
|
* @param bytes bytes encoding a string, whose encoding should be guessed
|
||||||
|
|
|
@ -51,7 +51,7 @@ public final class ITFReader extends OneDReader {
|
||||||
private static final int N = 1; // Pixed width of a narrow line
|
private static final int N = 1; // Pixed width of a narrow line
|
||||||
|
|
||||||
/** Valid ITF lengths. Anything longer than the largest value is also allowed. */
|
/** Valid ITF lengths. Anything longer than the largest value is also allowed. */
|
||||||
private static final int[] DEFAULT_ALLOWED_LENGTHS = { 6, 8, 10, 12, 14 };
|
private static final int[] DEFAULT_ALLOWED_LENGTHS = {6, 8, 10, 12, 14};
|
||||||
|
|
||||||
// Stores the actual narrow line width of the image being decoded.
|
// Stores the actual narrow line width of the image being decoded.
|
||||||
private int narrowLineWidth = -1;
|
private int narrowLineWidth = -1;
|
||||||
|
@ -126,7 +126,7 @@ public final class ITFReader extends OneDReader {
|
||||||
return new Result(
|
return new Result(
|
||||||
resultString,
|
resultString,
|
||||||
null, // no natural byte representation for these barcodes
|
null, // no natural byte representation for these barcodes
|
||||||
new ResultPoint[] { new ResultPoint(startRange[1], rowNumber),
|
new ResultPoint[] {new ResultPoint(startRange[1], rowNumber),
|
||||||
new ResultPoint(endRange[0], rowNumber)},
|
new ResultPoint(endRange[0], rowNumber)},
|
||||||
BarcodeFormat.ITF);
|
BarcodeFormat.ITF);
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,7 @@ final class FieldParser {
|
||||||
{ "391", VARIABLE_LENGTH, 18},
|
{ "391", VARIABLE_LENGTH, 18},
|
||||||
{ "392", VARIABLE_LENGTH, 15},
|
{ "392", VARIABLE_LENGTH, 15},
|
||||||
{ "393", VARIABLE_LENGTH, 18},
|
{ "393", VARIABLE_LENGTH, 18},
|
||||||
{ "703", VARIABLE_LENGTH, 30}
|
{ "703", VARIABLE_LENGTH, 30},
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final Object [][] FOUR_DIGIT_DATA_LENGTH = {
|
private static final Object [][] FOUR_DIGIT_DATA_LENGTH = {
|
||||||
|
|
Loading…
Reference in a new issue