mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
commit
b78688228d
|
@ -50,7 +50,7 @@ public final class ITFWriter extends OneDimensionalCodeWriter {
|
||||||
public boolean[] encode(String contents) {
|
public boolean[] encode(String contents) {
|
||||||
int length = contents.length();
|
int length = contents.length();
|
||||||
if (length % 2 != 0) {
|
if (length % 2 != 0) {
|
||||||
throw new IllegalArgumentException("The lenght of the input should be even");
|
throw new IllegalArgumentException("The length of the input should be even");
|
||||||
}
|
}
|
||||||
if (length > 80) {
|
if (length > 80) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
|
@ -73,4 +73,4 @@ public final class ITFWriter extends OneDimensionalCodeWriter {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue