incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romanst...@apache.org
Subject svn commit: r942740 - /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationConstraintBuilder.java
Date Mon, 10 May 2010 13:57:20 GMT
Author: romanstumm
Date: Mon May 10 13:57:20 2010
New Revision: 942740

URL: http://svn.apache.org/viewvc?rev=942740&view=rev
Log:
BVAL-38 reverted first fix (now obsolete)

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

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationConstraintBuilder.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationConstraintBuilder.java?rev=942740&r1=942739&r2=942740&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationConstraintBuilder.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationConstraintBuilder.java
Mon May 10 13:57:20 2010
@@ -72,10 +72,11 @@ final class AnnotationConstraintBuilder 
                                     buildPayload(method);
                                 } else if (ANNOTATION_GROUPS.equals(method.getName())) {
                                     buildGroups(method);
+                                } else {
+                                    constraintValidation.getAttributes()
+                                          .put(method.getName(), method.invoke(
+                                                constraintValidation.getAnnotation()));
                                 }
-                                constraintValidation.getAttributes()
-                                      .put(method.getName(), method.invoke(
-                                            constraintValidation.getAnnotation()));
                             } catch (Exception e) { // do nothing
                                 log.warn("error processing annotation: " +
                                       constraintValidation.getAnnotation(), e);



Mime
View raw message