geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1542194 - /geronimo/specs/trunk/geronimo-validation_1.1_spec/src/main/java/javax/validation/ConstraintViolationException.java
Date Fri, 15 Nov 2013 08:12:22 GMT
Author: rmannibucau
Date: Fri Nov 15 08:12:22 2013
New Revision: 1542194

URL: http://svn.apache.org/r1542194
Log:
fixing constructor signature for ConstraintViolationException

Modified:
    geronimo/specs/trunk/geronimo-validation_1.1_spec/src/main/java/javax/validation/ConstraintViolationException.java

Modified: geronimo/specs/trunk/geronimo-validation_1.1_spec/src/main/java/javax/validation/ConstraintViolationException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-validation_1.1_spec/src/main/java/javax/validation/ConstraintViolationException.java?rev=1542194&r1=1542193&r2=1542194&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-validation_1.1_spec/src/main/java/javax/validation/ConstraintViolationException.java
(original)
+++ geronimo/specs/trunk/geronimo-validation_1.1_spec/src/main/java/javax/validation/ConstraintViolationException.java
Fri Nov 15 08:12:22 2013
@@ -16,6 +16,7 @@
  */
 package javax.validation;
 
+import java.util.HashSet;
 import java.util.Set;
 
 /**
@@ -25,12 +26,12 @@ public class ConstraintViolationExceptio
     private final Set<ConstraintViolation<?>> constraintViolations;
 
     public ConstraintViolationException(String message,
-            Set<ConstraintViolation<?>> constraintViolations) {
+            Set<? extends ConstraintViolation<?>> constraintViolations) {
         super(message);
-        this.constraintViolations = constraintViolations;
+        this.constraintViolations = new HashSet<ConstraintViolation<?>>(constraintViolations);
     }
 
-    public ConstraintViolationException(Set<ConstraintViolation<?>> constraintViolations)
{
+    public ConstraintViolationException(Set<? extends ConstraintViolation<?>>
constraintViolations) {
         this(null, constraintViolations);
     }
 



Mime
View raw message