Author: epbernard
Date: 2009-03-16 23:15:16 -0400 (Mon, 16 Mar 2009)
New Revision: 16164
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Digits.java
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Future.java
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Past.java
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java
Log:
minor JavaDoc adjustments
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java 2009-03-16
23:50:05 UTC (rev 16163)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/ConstraintViolationException.java 2009-03-17
03:15:16 UTC (rev 16164)
@@ -33,7 +33,8 @@
* @param message error message
* @param constraintViolations Set of ConstraintViolation
*/
- public ConstraintViolationException(String message, Set<ConstraintViolation>
constraintViolations) {
+ public ConstraintViolationException(String message,
+ Set<ConstraintViolation> constraintViolations) {
super( message );
this.constraintViolations = constraintViolations;
}
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Digits.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Digits.java 2009-03-16
23:50:05 UTC (rev 16163)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Digits.java 2009-03-17
03:15:16 UTC (rev 16164)
@@ -31,11 +31,9 @@
* <ul>
* <li><code>BigDecimal</code></li>
* <li><code>BigInteger</code></li>
- * <li><code>Number</code></li>
* <li><code>String</code></li>
- * <li><code>byte</code>, <code>short</code>,
<code>int</code>,
- * <code>long</code>, <code>float</code>,
- * <code>double</code></li>
+ * <li><code>byte</code>, <code>short</code>,
<code>int</code>, <code>long</code>,
+ * and their respective wrapper types</li>
* </ul>
* <p/>
* <code>null</code> elements are considered valid
@@ -63,7 +61,7 @@
/**
* Defines several @Digits annotations on the same element
- * @see Digits
+ * @see {@link Digits}
*
* @author Emmanuel Bernard
*/
@@ -71,6 +69,6 @@
@Retention(RUNTIME)
@Documented
@interface List {
- Size[] value();
+ Digits[] value();
}
}
\ No newline at end of file
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Future.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Future.java 2009-03-16
23:50:05 UTC (rev 16163)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Future.java 2009-03-17
03:15:16 UTC (rev 16164)
@@ -31,14 +31,11 @@
* The calendar used if the compared type is of type <code>Calendar</code>
* is the calendar based on the current timezone and the current locale.
* <p/>
- * TODO what are the implications
- * <p/>
* Supported types are:
* <ul>
* <li><code>java.util.Date</code></li>
* <li><code>java.util.Calendar</code></li>
* </ul>
- * - TODO new date/time JSR types?
* <p/>
* <code>null</code> elements are considered valid.
*
@@ -54,7 +51,7 @@
/**
* Defines several @Future annotations on the same element
- * @see javax.validation.constraints.Future
+ * @see {@link Future}
*
* @author Emmanuel Bernard
*/
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Past.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Past.java 2009-03-16
23:50:05 UTC (rev 16163)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Past.java 2009-03-17
03:15:16 UTC (rev 16164)
@@ -31,14 +31,11 @@
* The calendar used if the compared type is of type <code>Calendar</code>
* is the calendar based on the current timezone and the current locale.
* <p/>
- * TODO what are the implications
- * <p/>
* Supported types are:
* <ul>
* <li><code>java.util.Date</code></li>
* <li><code>java.util.Calendar</code></li>
* </ul>
- * - TODO new date/time JSR types?
* <p/>
* <code>null</code> elements are considered valid.
*
@@ -53,8 +50,8 @@
Class<?>[] groups() default { };
/**
- * Defines several @NotNull annotations on the same element
- * @see Past
+ * Defines several @Past annotations on the same element
+ * @see {@link Past}
*
* @author Emmanuel Bernard
*/
Modified:
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java
===================================================================
---
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java 2009-03-16
23:50:05 UTC (rev 16163)
+++
beanvalidation/trunk/validation-api/src/main/java/javax/validation/constraints/Pattern.java 2009-03-17
03:15:16 UTC (rev 16164)
@@ -13,7 +13,7 @@
* The regular expression follows the Java regular expression conventions
* see {@link java.util.regex.Pattern}.
*
- * Accepts String.
+ * Accepts String. <code>null</code> elements are considered valid.
*
* @author Emmanuel Bernard
*/
@@ -85,12 +85,12 @@
* Enables canonical equivalence
* @see java.util.regex.Pattern#CANON_EQ
*/
- CANON_EQ,
+ CANON_EQ
}
/**
* Defines several @Pattern annotations on the same element
- * @see javax.validation.constraints.Pattern
+ * @see @link Pattern}
*
* @author Emmanuel Bernard
*/
Show replies by date