|
|
@@ -8,7 +8,7 @@ import java.util.List;
|
|
8
|
8
|
*/
|
|
9
|
9
|
final class OpticalCharacterReader {
|
|
10
|
10
|
|
|
11
|
|
- private static final int ROWS_PER_LINE = 4;
|
|
|
11
|
+ private static final int ROWS_PER_LINE = 4;
|
|
12
|
12
|
|
|
13
|
13
|
private static final int COLS_PER_SSD = 3;
|
|
14
|
14
|
|
|
|
@@ -56,9 +56,9 @@ final class OpticalCharacterReader {
|
|
56
|
56
|
"Number of input rows must be a positive multiple of " + ROWS_PER_LINE);
|
|
57
|
57
|
}
|
|
58
|
58
|
|
|
59
|
|
- final int inputColumnCount = input.get(0).length();
|
|
|
59
|
+ final int inputColCount = input.get(0).length();
|
|
60
|
60
|
|
|
61
|
|
- if (inputColumnCount == 0 || inputColumnCount % 3 != 0) {
|
|
|
61
|
+ if (inputColCount == 0 || inputColCount % 3 != 0) {
|
|
62
|
62
|
throw new IllegalArgumentException(
|
|
63
|
63
|
"Number of input columns must be a positive multiple of " + COLS_PER_SSD);
|
|
64
|
64
|
}
|