commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwinterfe...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator GenericTypeValidator.java
Date Tue, 02 Apr 2002 03:55:02 GMT
dwinterfeldt    02/04/01 19:55:02

  Modified:    validator/src/share/org/apache/commons/validator
                        GenericTypeValidator.java
  Log:
  Changed formatCreditCard to return a Long (Integer wasn't large enough).
  
  Revision  Changes    Path
  1.4       +7 -7      jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java
  
  Index: GenericTypeValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GenericTypeValidator.java	2 Apr 2002 03:28:52 -0000	1.3
  +++ GenericTypeValidator.java	2 Apr 2002 03:55:02 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java,v
1.3 2002/04/02 03:28:52 dwinterfeldt Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/04/02 03:28:52 $
  + * $Header: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericTypeValidator.java,v
1.4 2002/04/02 03:55:02 dwinterfeldt Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/04/02 03:55:02 $
    *
    * ====================================================================
    *
  @@ -77,7 +77,7 @@
    * validation performed.</p>
    *
    * @author David Winterfeldt
  - * @version $Revision: 1.3 $ $Date: 2002/04/02 03:28:52 $
  + * @version $Revision: 1.4 $ $Date: 2002/04/02 03:55:02 $
   */
   public class GenericTypeValidator implements Serializable {
       
  @@ -247,12 +247,12 @@
        *
        * @param 	value 		The value validation is being performed on.
       */
  -    public static Integer formatCreditCard(String value) {
  -       Integer result = null;
  +    public static Long formatCreditCard(String value) {
  +       Long result = null;
          
          try {
             if (GenericValidator.validateCreditCardLuhnCheck(value) && GenericValidator.validateCreditCardPrefixCheck(value))
{
  -             result = new Integer(value);
  +             result = new Long(value);
             }
          } catch (Exception e) {
          }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message