You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/11/09 23:19:55 UTC
svn commit: r1713561 -
/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java
Author: sebb
Date: Mon Nov 9 22:19:55 2015
New Revision: 1713561
URL: http://svn.apache.org/viewvc?rev=1713561&view=rev
Log:
Fix comments
Modified:
commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java
Modified: commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java?rev=1713561&r1=1713560&r2=1713561&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java (original)
+++ commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigitTest.java Mon Nov 9 22:19:55 2015
@@ -152,10 +152,10 @@ public class IBANCheckDigitTest extends
}
/**
- * Returns a code with the Check Digit (i.e. last character) removed.
+ * Returns a code with the Check Digits (i.e. characters 3&4) set to "00".
*
* @param code The code
- * @return The code without the check digit
+ * @return The code with the zeroed check digits
*/
protected String removeCheckDigit(String code) {
return code.substring(0, 2) + "00" + code.substring(4);