incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r929949 - in /incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions: MethodValidator.java MethodValidatorImpl.java
Date Thu, 01 Apr 2010 12:53:58 GMT
Author: simonetripodi
Date: Thu Apr  1 12:53:57 2010
New Revision: 929949

URL: http://svn.apache.org/viewvc?rev=929949&view=rev
Log:
fixed Constructor generic argument type

Modified:
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidator.java
    incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidator.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidator.java?rev=929949&r1=929948&r2=929949&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidator.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidator.java
Thu Apr  1 12:53:57 2010
@@ -85,7 +85,7 @@ public interface MethodValidator extends
      * the parameters of <code>constructor</code>.
      *
      * @param clazz           class hosting the constructor
-     * @param constructor     the constructor whose parameters are currectly validated
+     * @param constructor     the constructor whose parameters are correctly validated
      * @param parameterValues the parameter values passed to the constructor for invocation
      * @param groups          groups targeted for validation
      * @return set of constraint violations
@@ -93,7 +93,7 @@ public interface MethodValidator extends
      *                                  or if the Object[] does not match the constructor
signature
      */
     <T> Set<ConstraintViolation<T>> validateParameters(Class<T> clazz,
-                                                    Constructor constructor,
+                                                    Constructor<T> constructor,
                                                     Object[] parameterValues,
                                                     Class<?>... groups);
 
@@ -102,7 +102,7 @@ public interface MethodValidator extends
      * the parameterIndex-th parameter of <code>constructor</code>.
      *
      * @param clazz          class hosting the constructor
-     * @param constructor    the method whose parameters are currectly validated
+     * @param constructor    the method whose parameters are correctly validated
      * @param parameterValue the parameter value passed to the
      *                       parameterIndex-th parameter of constructor
      * @param parameterIndex parameter index of the parameter validated in constructor
@@ -112,7 +112,7 @@ public interface MethodValidator extends
      *                                  or if prameterIndex is out of bound
      */
     <T> Set<ConstraintViolation<T>> validateParameter(Class<T> clazz,
-                                                   Constructor constructor,
+                                                   Constructor<T> constructor,
                                                    Object parameterValue,
                                                    int parameterIndex,
                                                    Class<?>... groups);

Modified: incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java?rev=929949&r1=929948&r2=929949&view=diff
==============================================================================
--- incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java
(original)
+++ incubator/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/jsr303/extensions/MethodValidatorImpl.java
Thu Apr  1 12:53:57 2010
@@ -93,7 +93,7 @@ class MethodValidatorImpl extends ClassV
     }
 
     public <T> Set<ConstraintViolation<T>> validateParameters(Class<T>
clazz,
-                                                              Constructor constructor,
+                                                              Constructor<T> constructor,
                                                               Object[] parameters,
                                                               Class<?>... groupArray)
{
         MethodBeanDescriptorImpl beanDesc =
@@ -105,7 +105,7 @@ class MethodValidatorImpl extends ClassV
     }
 
     public <T> Set<ConstraintViolation<T>> validateParameter(Class<T>
clazz,
-                                                             Constructor constructor,
+                                                             Constructor<T> constructor,
                                                              Object parameter,
                                                              int parameterIndex,
                                                              Class<?>... groupArray)
{



Mime
View raw message