Skip to content

Commit 36ef106

Browse files
committed
comment
1 parent a9dae2c commit 36ef106

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/commons/validator/routines/checkdigit/Modulus97CheckDigit.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public boolean isValid(final String code) {
109109
throw new CheckDigitException(CheckDigitException.invalidCode(code, "too short"));
110110
}
111111
// check = code.substring(code.length() - getCheckdigitLength());
112-
// final int cd = Integer.parseInt("0"+check);
112+
// // without the leading "0" the following would be valid "+4"
113+
// final int cd = Integer.parseInt("0" + check);
113114
// if (cd==0 || cd==1 || cd==99) {
114115
// return false;
115116
// }

0 commit comments

Comments
 (0)