changeset 9799:d2a8025c3a7c 3.2.x

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.
author Tom Gottfried <tom@intevation.de>
date Thu, 16 Nov 2023 11:56:42 +0100
parents e21697ba97f8
children 5141e37b9ef0
files artifacts/src/main/java/org/dive4elements/river/exports/DischargeLongitudinalSectionExporter.java
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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];

http://dive4elements.wald.intevation.org