Skip to content

Commit

Permalink
BVAL-259 Enforce that evaluation fails on first error
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik authored and emmanuelbernard committed Oct 16, 2012
1 parent 033a0ad commit d5f58e9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/java/javax/validation/ReportAsSingleViolation.java
Expand Up @@ -16,15 +16,22 @@
*/
package javax.validation;

import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
* A constraint annotation hosting this annotation
* will return the composed annotation error report if any of the composing annotations
* fail. The error reports of each individual composing constraint is ignored.
* A constraint annotation hosting this annotation will return the
* composed annotation error report if any of the composing annotations fail.
* The error reports of each individual composing constraint are ignored.
*
* <p>
* Note: Evaluation of composed constraints stops on the first validation
* error in case the composing constraint is annotated with
* {@code @ReportAsSingleViolation}.
* </p>
*
* @author Emmanuel Bernard
*/
Expand Down

0 comments on commit d5f58e9

Please sign in to comment.