[Dive4elements-commits] [PATCH] BHP: do not import lines without useful data

Wald Commits scm-commit at wald.intevation.org
Thu May 16 20:11:59 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1368727913 -7200
# Node ID 1bb4b51ff1e66fea5ce09ad0b27098c61cbc1cb3
# Parent  4493ef20d35721f582f0f0d3a0744656de0cd02e
BHP: do not import lines without useful data

diff -r 4493ef20d357 -r 1bb4b51ff1e6 backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java	Thu May 16 18:04:35 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java	Thu May 16 20:11:53 2013 +0200
@@ -59,11 +59,7 @@
 
         // Handle gaps like "10,0;;;;;".
         if (values.length == 1) {
-            ImportBedHeightSingleValue value = new ImportBedHeightSingleValue(
-                (ImportBedHeightSingle) obj,
-                km,
-                null, null, null, null, null);
-            obj.addValue(value);
+            // Do not import line without useful data
             return;
         }
 


More information about the Dive4elements-commits mailing list