Author: epbernard
Date: 2009-05-07 08:00:09 -0400 (Thu, 07 May 2009)
New Revision: 16517
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java
Log:
BVAL-153 ConstraintViolationException now receives <?>
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java 2009-05-06
15:52:26 UTC (rev 16516)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java 2009-05-07
12:00:09 UTC (rev 16517)
@@ -21,11 +21,11 @@
/**
* Report the result of constraint violations
- *
+ * `
* @author Emmanuel Bernard
*/
public class ConstraintViolationException extends ValidationException {
- private final Set<ConstraintViolation> constraintViolations;
+ private final Set<ConstraintViolation<?>> constraintViolations;
/**
* Creates a constraint violation report
@@ -33,8 +33,8 @@
* @param message error message
* @param constraintViolations Set of ConstraintViolation
*/
- public ConstraintViolationException(String message,
- Set<ConstraintViolation> constraintViolations) {
+ public <T> ConstraintViolationException(String message,
+ Set<ConstraintViolation<?>> constraintViolations) {
super( message );
this.constraintViolations = constraintViolations;
}
@@ -44,7 +44,7 @@
*
* @param constraintViolations Set of ConstraintViolation
*/
- public ConstraintViolationException(Set<ConstraintViolation> constraintViolations)
{
+ public <T> ConstraintViolationException(Set<ConstraintViolation<?>>
constraintViolations) {
super();
this.constraintViolations = constraintViolations;
}
@@ -54,7 +54,7 @@
*
* @return Set of CosntraintViolation
*/
- public Set<ConstraintViolation> getConstraintViolations() {
+ public Set<ConstraintViolation<?>> getConstraintViolations() {
return constraintViolations;
}
}
Show replies by date