From dfea9d5f03da63f662faa3ef9511448316bf0ec8 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 8 Dec 2006 15:58:29 +0000 Subject: Fixed default float constraint limits. --- src/main/java/com/amazon/carbonado/constraint/FloatConstraint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/constraint') 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}. -- cgit v1.2.3