Author: epbernard
Date: 2009-02-24 10:58:29 -0500 (Tue, 24 Feb 2009)
New Revision: 16025
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java
Log:
BVAL-128 Clarify invalid cases for validateProperty / validateValue on proeprtyName being
empty or null
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java 2009-02-24
15:52:58 UTC (rev 16024)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java 2009-02-24
15:58:29 UTC (rev 16025)
@@ -50,7 +50,8 @@
*
* @return constraint violations or an empty Set if none
*
- * @throws IllegalArgumentException if object is null or if propertyName is not present
+ * @throws IllegalArgumentException if object is null, if propertyName null, empty
+ * or not a valid object property
*/
<T> Set<ConstraintViolation<T>> validateProperty(T object,
String propertyName,
@@ -69,7 +70,8 @@
* (default to {@link javax.validation.groups.Default})
*
* @return constraint violations or an empty Set if none
- * @throws IllegalArgumentException if propertyName is not present
+ * @throws IllegalArgumentException if object is null, if propertyName null, empty
+ * or not a valid object property
*/
<T> Set<ConstraintViolation<T>> validateValue(Class<T>
beanType,
String propertyName,