[PATCH 1 of 6] Correct SedimentLoadExporters compilability-fix

Wald Commits scm-commit at wald.intevation.org
Fri Sep 6 17:01:49 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1378463862 -7200
# Node ID 81f84960d7220a9a927fe46813b4c13085f2a668
# Parent  164e2f2c9bea92d10d0ebc56505c44fa7c3a8b6e
Correct SedimentLoadExporters compilability-fix.

diff -r 164e2f2c9bea -r 81f84960d722 artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadExporter.java	Thu Sep 05 19:05:00 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadExporter.java	Fri Sep 06 12:37:42 2013 +0200
@@ -94,13 +94,9 @@
     protected void writeCSVData(CSVWriter writer) throws IOException {
         writeCSVHeader(writer);
 
-        //@felix: Please fix this!!!!
-        //boolean asSingleYear = toYear == 0;
-        boolean asSingleYear = true;
-
         for (SedimentLoadResult result: results) {
-            String years = asSingleYear
-                    ? result.getStartYear()+ " "
+            String years = (result.getEndYear() == 0)
+                    ? result.getStartYear() + " "
                     : result.getStartYear() + "-" + result.getEndYear();
             SedimentLoad load = result.getLoad();
             // Put load.getName()+load.getDescription()}); somewhere?


More information about the Dive4elements-commits mailing list