diff backend/src/main/java/org/dive4elements/river/importer/parsers/SQRelationParser.java @ 7252:c894b7b45c4c

Replaced some tabs by spaces. Guys, please configure your editors not to insert tabs!
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 05 Oct 2013 12:48:44 +0200
parents 4c3ccf2b0304
children 07cc4cd9233e
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/SQRelationParser.java	Sat Oct 05 12:19:54 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/SQRelationParser.java	Sat Oct 05 12:48:44 2013 +0200
@@ -127,18 +127,21 @@
         Integer nOutlier = parseInteger(cols[11], line);
         Double cFer = parseDouble(cols[12], line);
         Double cDuan = parseDouble(cols[13], line);
-        if (km == null || a == null || b == null ||
-	    qMax == null || cols[1].length() == 0) {
-	    if (km == null) {
-		log.error("No km for measurement station: Can not reference measurement station: "
-		    + line);
-	    }
-	    if ( a == null || b == null ||
-		qMax == null || cols[1].length() == 0) {
-		log.error("Incomplete SQ-relation row (missing a, b, Qmax or parameter): "
-		    + line);
-	    }
-	    return;
+
+        if (km == null || a == null || b == null
+        || qMax == null || cols[1].length() == 0
+        ) {
+            if (km == null) {
+                log.error("No km for measurement station: Can not reference measurement station: "
+                    + line);
+            }
+            if (a == null || b == null
+            || qMax == null || cols[1].length() == 0
+            ) {
+                log.error("Incomplete SQ-relation row (missing a, b, Qmax or parameter): "
+                    + line);
+            }
+            return;
         }
         current.addValue(new ImportSQRelationValue(
             cols[1],

http://dive4elements.wald.intevation.org