commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1782666 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
Date Sun, 12 Feb 2017 13:51:38 GMT
Author: sebb
Date: Sun Feb 12 13:51:38 2017
New Revision: 1782666

URL: http://svn.apache.org/viewvc?rev=1782666&view=rev
Log:
Javadoc

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java?rev=1782666&r1=1782665&r2=1782666&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java
Sun Feb 12 13:51:38 2017
@@ -257,17 +257,21 @@ public class CreditCardValidator impleme
 
     /**
      * Create a new generic CreditCardValidator which validates the syntax and check digit
only.
+     * Does not check the Issuer Identification Number (IIN)
+     *
      * @param minLen minimum allowed length
      * @param maxLen maximum allowed length
      * @return the validator
      * @since 1.5.2
      */
     public static CreditCardValidator genericCreditCardValidator(int minLen, int maxLen)
{
-        return new CreditCardValidator(new CodeValidator[] {new CodeValidator("(\\d+)", minLen,
maxLen, LuhnCheckDigit.LUHN_CHECK_DIGIT)});
+        return new CreditCardValidator(new CodeValidator[] {new CodeValidator("(\\d+)", minLen,
maxLen, LUHN_VALIDATOR)});
     }
 
     /**
      * Create a new generic CreditCardValidator which validates the syntax and check digit
only.
+     * Does not check the Issuer Identification Number (IIN)
+     *
      * @param length exact length
      * @return the validator
      * @since 1.5.2
@@ -278,6 +282,8 @@ public class CreditCardValidator impleme
 
     /**
      * Create a new generic CreditCardValidator which validates the syntax and check digit
only.
+     * Does not check the Issuer Identification Number (IIN)
+     *
      * @return the validator
      * @since 1.5.2
      */



Mime
View raw message