Mercurial > projects > dwt2
diff org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/validation/NumberToDoubleValidator.d @ 85:6be48cf9f95c
Work on databinding
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 18 Apr 2009 13:54:50 +0200 |
parents | 383ce7bd736b |
children |
line wrap: on
line diff
--- a/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/validation/NumberToDoubleValidator.d Sat Apr 18 09:25:29 2009 +0200 +++ b/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/validation/NumberToDoubleValidator.d Sat Apr 18 13:54:50 2009 +0200 @@ -25,13 +25,17 @@ * @since 1.0 */ public class NumberToDoubleValidator : NumberToNumberValidator { - private static final Double MIN = new Doublecast(Double.MIN_VALUE); - private static final Double MAX = new Doublecast(Double.MAX_VALUE); + private static Double MIN; + private static Double MAX; /** * @param converter */ public this(NumberToDoubleConverter converter) { + if( MIN is null || MAX is null ){ + MIN = new Double(Double.MIN_VALUE); + MAX = new Double(Double.MAX_VALUE); + } super(converter, MIN, MAX); }