[PATCH] Fix relationship with parent class

Wald Commits scm-commit at wald.intevation.org
Thu Nov 16 11:57:18 CET 2023


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1700132202 -3600
#      Thu Nov 16 11:56:42 2023 +0100
# Branch 3.2.x
# Node ID d2a8025c3a7cdaf6c3c79c64b2c7ab6fbfd9ad5c
# Parent  e21697ba97f82d01b03d67d977c0854b26db9bd6
Fix relationship with parent class

The missing @Override lead to the parent class's method being
silently used since rev. ce7c67445cbb, resulting in messed
CSV export results.

diff -r e21697ba97f8 -r d2a8025c3a7c artifacts/src/main/java/org/dive4elements/river/exports/DischargeLongitudinalSectionExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DischargeLongitudinalSectionExporter.java	Wed Nov 15 11:54:00 2023 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DischargeLongitudinalSectionExporter.java	Thu Nov 16 11:56:42 2023 +0100
@@ -64,7 +64,7 @@
         boolean   atGauge,
         boolean   isQ
     ) {
-        log.info("WaterlevelExporter.writeCSVHeader");
+        log.info("DischargeLongitudinalSectionExporter.writeCSVHeader");
 
         writer.writeNext(new String[] {
             msg(CSV_KM_HEADER, DEFAULT_CSV_KM_HEADER),
@@ -75,14 +75,15 @@
         });
     }
 
-
+    @Override
     protected void wQKms2CSV(
         CSVWriter writer,
         WQKms     wqkms,
         boolean   atGauge,
-        boolean   isQ
+        boolean   isQ,
+        boolean   isOfficial
     ) {
-        log.debug("WaterlevelExporter.wQKms2CSV");
+        log.debug("DischargeLongitudinalSectionExporter.wQKms2CSV");
 
         int      size   = wqkms.size();
         double[] result = new double[4];


More information about the Dive4Elements-commits mailing list