incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r928884 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java
Date Mon, 29 Mar 2010 19:40:25 GMT
Author: simonetripodi
Date: Mon Mar 29 19:40:25 2010
New Revision: 928884

URL: http://svn.apache.org/viewvc?rev=928884&view=rev
Log:
EMailValidation.isValid has to be accessed in a static way

Modified:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java?rev=928884&r1=928883&r2=928884&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java
Mon Mar 29 19:40:25 2010
@@ -31,10 +31,9 @@ import org.apache.bval.routines.EMailVal
  * Copyright: Agimatec GmbH
  */
 public class EmailValidator implements ConstraintValidator<Email, String> {
-    protected final EMailValidation validation = new EMailValidation();
 
     public boolean isValid(String value, ConstraintValidatorContext context) {
-        return validation.isValid(value);
+        return EMailValidation.isValid(value);
     }
 
     public void initialize(Email parameters) {



Mime
View raw message