Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleRangePanel.java @ 4131:360e22afb98b
Cosmetics, warnings and minor TODOs.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Mon, 15 Oct 2012 00:04:35 +0200 |
parents | 15b4bc8eede0 |
children |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleRangePanel.java Sun Oct 14 14:44:28 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleRangePanel.java Mon Oct 15 00:04:35 2012 +0200 @@ -1,7 +1,5 @@ package de.intevation.flys.client.client.ui; -import java.util.Map; - import com.google.gwt.core.client.GWT; import com.google.gwt.i18n.client.NumberFormat; @@ -14,6 +12,7 @@ import de.intevation.flys.client.client.FLYSConstants; +import java.util.Map; /** @@ -166,6 +165,7 @@ * * @param item The FormItem. */ + @SuppressWarnings("unchecked") protected boolean validateForm(FormItem item) { if (item instanceof StaticTextItem) { return true; @@ -176,6 +176,7 @@ String v = (String) item.getValue(); NumberFormat f = NumberFormat.getDecimalFormat(); + @SuppressWarnings("rawtypes") Map errors = getErrors(); try { @@ -183,7 +184,7 @@ throw new NumberFormatException("empty"); } - double value = f.parse(v); + f.parse(v); errors.remove(item.getFieldName()); }