Skip to content

Commit

Permalink
BVAL-232 Minor adjustments on the cross-parameter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbernard committed Oct 19, 2012
1 parent c028642 commit 9124b07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/javax/validation/Constraint.java
Expand Up @@ -42,7 +42,7 @@
* If two {@code ConstraintValidator}s refer to the same type,
* an exception will occur.
*
* @return array of ConstraintValidator classes implementing the constraint
* @return array of (@code ConstraintValidator} classes implementing the constraint
*/
Class<? extends ConstraintValidator<?, ?>>[] validatedBy();
}
4 changes: 4 additions & 0 deletions src/main/java/javax/validation/ConstraintViolation.java
Expand Up @@ -63,6 +63,10 @@ public interface ConstraintViolation<T> {
Path getPropertyPath();

/**
* Returns the value failing to pass the constraint.
* For cross-parameter constraints, an {@code Object[]} representing
* the method invocation arguments is returned.
*
* @return the value failing to pass the constraint.
*/
Object getInvalidValue();
Expand Down
Expand Up @@ -28,6 +28,7 @@
* validation implementation.
*
* @author Gunnar Morling
* @since 1.1
*/
@Documented
@Target({ ANNOTATION_TYPE })
Expand Down

0 comments on commit 9124b07

Please sign in to comment.