changeset 3799:b9a99fcc78c3

Fixed broken loops to find the bed height epochs and singles for a given river and km range. flys-backend/trunk@5490 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 17 Sep 2012 10:09:42 +0000
parents 90f91ba077a8
children 69d19995bc3c 686b5a5f9f25
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Thu Sep 13 16:34:02 2012 +0000
+++ b/flys-backend/ChangeLog	Mon Sep 17 10:09:42 2012 +0000
@@ -1,3 +1,11 @@
+2012-09-17  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/model/BedHeightEpoch.java:
+	  Corrected broken loop to find epochs for river and km range.
+
+	* src/main/java/de/intevation/flys/model/BedHeightSingle.java:
+	  Corrected broken loop to find singles for river and km range.
+
 2012-09-12	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/importer/parsers/BedHeightParser.java:
--- a/flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java	Thu Sep 13 16:34:02 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java	Mon Sep 17 10:09:42 2012 +0000
@@ -180,8 +180,7 @@
         List<BedHeightEpoch> epochs = query.list();
         List<BedHeightEpoch> good   = new ArrayList<BedHeightEpoch>();
 
-        for (BedHeightEpoch e: epochs) {
-            OUTER:
+        OUTER: for (BedHeightEpoch e: epochs) {
             for (BedHeightEpochValue value: e.getValues()) {
                 double station = value.getStation().doubleValue();
 
--- a/flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java	Thu Sep 13 16:34:02 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java	Mon Sep 17 10:09:42 2012 +0000
@@ -241,8 +241,7 @@
         List<BedHeightSingle> singles = query.list();
         List<BedHeightSingle> good    = new ArrayList<BedHeightSingle>();
 
-        for (BedHeightSingle s: singles) {
-            OUTER:
+        OUTER: for (BedHeightSingle s: singles) {
             for (BedHeightSingleValue value: s.getValues()) {
                 double station = value.getStation().doubleValue();
 

http://dive4elements.wald.intevation.org