bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1613846 - /bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
Date Sun, 27 Jul 2014 21:18:24 GMT
Author: rmannibucau
Date: Sun Jul 27 21:18:23 2014
New Revision: 1613846

URL: http://svn.apache.org/r1613846
Log:
avoid to fail cause bval provider is wrong - we could force our own one too + reducing error
log level since it shouldn't bother the app

Modified:
    bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java

Modified: bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
URL: http://svn.apache.org/viewvc/bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java?rev=1613846&r1=1613845&r2=1613846&view=diff
==============================================================================
--- bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java (original)
+++ bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java Sun
Jul 27 21:18:23 2014
@@ -151,8 +151,8 @@ public class BValExtension implements Ex
         final int modifiers = javaClass.getModifiers();
         if (!javaClass.getName().startsWith("javax.") && !javaClass.getName().startsWith("org.apache.bval")
                 && !javaClass.isInterface() && !Modifier.isFinal(modifiers)
&& !Modifier.isAbstract(modifiers)) {
-            ensureFactoryValidator();
             try {
+                ensureFactoryValidator();
                 final BeanDescriptor classConstraints = validator.getConstraintsForClass(javaClass);
                 if (annotatedType.isAnnotationPresent(ValidateOnExecution.class)
                     || hasValidationAnnotation(annotatedType.getMethods())
@@ -168,7 +168,7 @@ public class BValExtension implements Ex
                     pat.setAnnotatedType(bValAnnotatedType);
                 }
             } catch (final ValidationException ve) {
-                LOGGER.log(Level.SEVERE, ve.getMessage(), ve);
+                LOGGER.log(Level.FINEST, ve.getMessage(), ve);
             }
         }
     }



Mime
View raw message