commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator GenericValidator.java
Date Thu, 08 Apr 2004 22:51:17 GMT
dgraham     2004/04/08 15:51:17

  Modified:    validator/src/share/org/apache/commons/validator
                        GenericValidator.java
  Log:
  Removed items deprecated in 1.1.x series.
  
  Revision  Changes    Path
  1.30      +3 -36     jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java
  
  Index: GenericValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/GenericValidator.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- GenericValidator.java	21 Feb 2004 17:10:29 -0000	1.29
  +++ GenericValidator.java	8 Apr 2004 22:51:17 -0000	1.30
  @@ -32,12 +32,6 @@
   public class GenericValidator implements Serializable {
   
       /**
  -     * Delimiter to put around a regular expression following Perl 5 syntax.
  -     * @deprecated Use ValidatorUtils.REGEXP_DELIMITER instead.
  -     */
  -    public final static String REGEXP_DELIM = ValidatorUtil.REGEXP_DELIMITER;
  -
  -    /**
        * UrlValidator used in wrapper method.
        */
       private static final UrlValidator urlValidator = new UrlValidator();
  @@ -236,26 +230,6 @@
       }
   
       /**
  -     * Checks for a valid credit card number.
  -     *
  -     * @param cardNumber Credit Card Number.
  -     * @deprecated This functionality has moved to CreditCardValidator.
  -     */
  -    protected static boolean validateCreditCardLuhnCheck(String cardNumber) {
  -        return (new CreditCardValidator()).luhnCheck(cardNumber);
  -    }
  -
  -    /**
  -     * Checks for a valid credit card number.
  -     *
  -     * @param cardNumber Credit Card Number.
  -     * @deprecated This functionality has move to CreditCardValidator.
  -     */
  -    protected boolean validateCreditCardPrefixCheck(String cardNumber) {
  -        return (new CreditCardValidator()).isValidPrefix(cardNumber);
  -    }
  -
  -    /**
        * <p>Checks if a field has a valid e-mail address.</p>
        *
        * @param value The value validation is being performed on.
  @@ -295,11 +269,4 @@
           return (value.length() >= min);
       }
   
  -    /**
  -     * Adds a '/' on either side of the regular expression.
  -     * @deprecated use ValidatorUtils.getDelimitedRegExp() instead.
  -     */
  -    protected static String getDelimittedRegexp(String regexp) {
  -        return ValidatorUtil.getDelimitedRegExp(regexp);
  -    }
   }
  
  
  

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


Mime
View raw message