diff org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/validation/StringToIntegerValidator.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/StringToIntegerValidator.d	Sat Apr 18 09:25:29 2009 +0200
+++ b/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/validation/StringToIntegerValidator.d	Sat Apr 18 13:54:50 2009 +0200
@@ -25,13 +25,17 @@
  * @since 1.0
  */
 public class StringToIntegerValidator : AbstractStringToNumberValidator {
-    private static final Integer MIN = new Integercast(Integer.MIN_VALUE);
-    private static final Integer MAX = new Integercast(Integer.MAX_VALUE);
+    private static Integer MIN;
+    private static Integer MAX;
 
     /**
      * @param converter
      */
     public this(NumberFormatConverter converter) {
+        if( MIN is null || MAX is null ){
+            MIN = new Integer(Integer.MIN_VALUE);
+            MAX = new Integer(Integer.MAX_VALUE);
+        }
         super(converter, MIN, MAX);
     }