Author: epbernard
Date: 2009-06-17 20:29:12 -0400 (Wed, 17 Jun 2009)
New Revision: 16829
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java
beanvalidation/trunk/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java
Log:
BVAL-166 IllegalArgumentException raised on BeanDescriptor.getConstraintsForProperty and
Validator.getConstraintsForClass
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java 2009-06-17
23:18:27 UTC (rev 16828)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/Validator.java 2009-06-18
00:29:12 UTC (rev 16829)
@@ -96,6 +96,7 @@
*
* @return the bean descriptor for the specified class.
*
+ * @throws IllegalArgumentException if clazz is null
* @throws ValidationException if a non recoverable error happens
* during the metadata discovery or if some
* constraints are invalid.
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java 2009-06-17
23:18:27 UTC (rev 16828)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java 2009-06-18
00:29:12 UTC (rev 16829)
@@ -45,9 +45,11 @@
* The returned object (and associated objects including ConstraintDescriptors)
* are immutable.
*
- * @param propertyName property evaludated
+ * @param propertyName property evaluated
*
* @return the property descriptor for a given property.
+ *
+ * @throws IllegalArgumentException if propertyName is null
*/
PropertyDescriptor getConstraintsForProperty(String propertyName);
Show replies by date