Hibernate SVN: r16492 - beanvalidation/trunk/validation-api/src/main/java/javax/validation.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2009-05-01 05:31:19 -0400 (Fri, 01 May 2009)
New Revision: 16492
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/TraversableResolver.java
Log:
BVAL-151 TR can receive null traversableObjects
Modified: beanvalidation/trunk/validation-api/src/main/java/javax/validation/TraversableResolver.java
===================================================================
--- beanvalidation/trunk/validation-api/src/main/java/javax/validation/TraversableResolver.java 2009-04-30 21:04:25 UTC (rev 16491)
+++ beanvalidation/trunk/validation-api/src/main/java/javax/validation/TraversableResolver.java 2009-05-01 09:31:19 UTC (rev 16492)
@@ -23,7 +23,7 @@
* Contract determining if a property can be accessed by the Bean Validation provider
* This contract is called for each property either validated or traversed.
*
- * A traversable resolver implementation must me thread-safe.
+ * A traversable resolver implementation must be thread-safe.
*
* @author Emmanuel Bernard
*/
@@ -31,11 +31,12 @@
/**
* Determine if a property can be traversed by Bean Validation.
*
- * @param traversableObject object hosting <code>traversableProperty</code>.
+ * @param traversableObject object hosting <code>traversableProperty</code>, null if validateValue is called
* @param traversableProperty name of the traversable property.
* @param rootBeanType type of the root object passed to the Validator.
* @param pathToTraversableObject path from the root object to
- * the <code>traversableProperty</code>
+ * <code>traversableObject</code> ("" if the <code>traversableObject</code>
+ * is the root object)
* (using the path specification defined by Bean Validator).
* @param elementType either <code>FIELD</code> or <code>METHOD</code>.
*
15 years, 11 months