[Dive4elements-commits] [PATCH] Removed cruft iterator code
Wald Commits
scm-commit at wald.intevation.org
Thu May 23 06:07:40 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1369282029 -7200
# Node ID e6bdba4f227ff07d25d38d0b7b91c173fdcbb937
# Parent e08303469a6488852393f0f842be1fe18994b19f
Removed cruft iterator code.
diff -r e08303469a64 -r e6bdba4f227f gwt-client/src/main/java/org/dive4elements/river/client/client/ui/WQAdaptedFixingInputPanel.java
--- 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());
More information about the Dive4elements-commits
mailing list