Mercurial > dive4elements > river
changeset 6068:e6bdba4f227f
Removed cruft iterator code.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 23 May 2013 06:07:09 +0200 |
parents | e08303469a64 |
children | dcbc06ca5d19 |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedFixingInputPanel.java |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedFixingInputPanel.java Thu May 23 05:54:57 2013 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedFixingInputPanel.java Thu May 23 06:07:09 2013 +0200 @@ -11,7 +11,6 @@ import com.google.gwt.i18n.client.NumberFormat; import java.util.ArrayList; -import java.util.Iterator; import java.util.List; import java.util.Map; @@ -31,13 +30,7 @@ List<String> errors = new ArrayList<String>(); NumberFormat nf = NumberFormat.getDecimalFormat(); - Iterator<String> iter = wqranges.keySet().iterator(); - - while (iter.hasNext()) { - List<String> tmpErrors = new ArrayList<String>(); - - String key = iter.next(); - DoubleArrayPanel dap = wqranges.get(key); + for (DoubleArrayPanel dap: wqranges.values()) { if (!dap.validateForm()) { errors.add(MSG.error_invalid_double_value());