summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-12-08 15:58:29 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-12-08 15:58:29 +0000
commitdfea9d5f03da63f662faa3ef9511448316bf0ec8 (patch)
tree952d4ba51df2529ffa312267b3795f61d17f59c9 /src/main
parent1de87db5cee7a3c15d086998f9480f503f0084f7 (diff)
Fixed default float constraint limits.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/amazon/carbonado/constraint/FloatConstraint.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/amazon/carbonado/constraint/FloatConstraint.java b/src/main/java/com/amazon/carbonado/constraint/FloatConstraint.java
index 29c5c83..171b938 100644
--- a/src/main/java/com/amazon/carbonado/constraint/FloatConstraint.java
+++ b/src/main/java/com/amazon/carbonado/constraint/FloatConstraint.java
@@ -61,12 +61,12 @@ public @interface FloatConstraint {
/**
* Specify minimum allowed value for float/double property. Default is unlimited.
*/
- double min() default Double.MIN_VALUE;
+ double min() default Double.NEGATIVE_INFINITY;
/**
* Specify maximum allowed value for float/double property. Default is unlimited.
*/
- double max() default Double.MAX_VALUE;
+ double max() default Double.POSITIVE_INFINITY;
/**
* Constraint implementation for {@link FloatConstraint}.