[Dive4elements-commits] [PATCH 1 of 2] Fix: Don't show the warning if datatype is WQKms

Wald Commits scm-commit at wald.intevation.org
Fri Nov 30 16:07:31 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1354287963 -3600
# Node ID 497bc73ca64aa3be76f8825f6a13f1ab9e45e3fa
# Parent  7898117a0730a2b9e163047ecf1d7e2c3c337121
Fix: Don't show the warning if datatype is WQKms

Add a missing return to not show the warning. WQKms data objects are already
handled correctly in the ComputedDischargeCurveExporter.

diff -r 7898117a0730 -r 497bc73ca64a flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java	Fri Nov 30 10:21:09 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveExporter.java	Fri Nov 30 16:06:03 2012 +0100
@@ -83,6 +83,7 @@
         }
         else if (d instanceof WQKms) {
             data.add((WQKms)d);
+            return;
         }
         logger.warn("Can't add data for csv export. Unkown data type " +
                 d.getClass().getName());


More information about the Dive4elements-commits mailing list