commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlel...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator EmailValidator.java GenericValidator.java
Date Wed, 30 Apr 2003 21:28:41 GMT
rleland     2003/04/30 14:28:40

  Modified:    validator/src/share/org/apache/commons/validator
                        EmailValidator.java GenericValidator.java
  Log:
  Make method naming consistent with isValid() for standalone
  EmailValidator
  
  Revision  Changes    Path
  1.2       +8 -8      jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java
  
  Index: EmailValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EmailValidator.java	29 Apr 2003 02:15:35 -0000	1.1
  +++ EmailValidator.java	30 Apr 2003 21:28:40 -0000	1.2
  @@ -69,10 +69,10 @@
    * This class is a Singleton; you can retrieve the instance via the getInstance() method.
    * </p>
    * <p>
  - * Based on a script by <a href="mailto:stamhankar@hotmail.com">Sandeep V. Tamhankar</a>
 
  + * Based on a script by <a href="mailto:stamhankar@hotmail.com">Sandeep V. Tamhankar</a>
    * http://javascript.internet.com
    * </p>
  - * 
  + *
    * @author David Winterfeldt
    * @author James Turner
    * @author <a href="mailto:husted@apache.org">Ted Husted</a>
  @@ -106,7 +106,7 @@
   	 *
   	 * @param value The value validation is being performed on.
   	 */
  -	public boolean isEmail(String value) {
  +	public boolean isValid(String value) {
   		boolean isValid = true;
   
   		try {
  @@ -157,7 +157,7 @@
   
   				String user = matchEmailPat.group(1);
   
  -				// See if "user" is valid 
  +				// See if "user" is valid
   				isValid = matchUserPat.match(userPat, user);
   			}
   
  
  
  
  1.19      +5 -5      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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- GenericValidator.java	30 Apr 2003 21:24:41 -0000	1.18
  +++ GenericValidator.java	30 Apr 2003 21:28:40 -0000	1.19
  @@ -331,7 +331,7 @@
       * @param value The value validation is being performed on.
       */
      public static boolean isEmail(String value) {
  -      return EmailValidator.getInstance().isEmail(value);
  +      return EmailValidator.getInstance().isValid(value);
      }
   
      /**
  
  
  

---------------------------------------------------------------------
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