comparison artifacts/src/main/java/org/dive4elements/river/exports/DischargeLongitudinalSectionExporter.java @ 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 0a5239a1e46e
children
comparison
equal deleted inserted replaced
9798:e21697ba97f8 9799:d2a8025c3a7c
62 protected void writeCSVHeader( 62 protected void writeCSVHeader(
63 CSVWriter writer, 63 CSVWriter writer,
64 boolean atGauge, 64 boolean atGauge,
65 boolean isQ 65 boolean isQ
66 ) { 66 ) {
67 log.info("WaterlevelExporter.writeCSVHeader"); 67 log.info("DischargeLongitudinalSectionExporter.writeCSVHeader");
68 68
69 writer.writeNext(new String[] { 69 writer.writeNext(new String[] {
70 msg(CSV_KM_HEADER, DEFAULT_CSV_KM_HEADER), 70 msg(CSV_KM_HEADER, DEFAULT_CSV_KM_HEADER),
71 msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER), 71 msg(CSV_W_HEADER, DEFAULT_CSV_W_HEADER),
72 msg(CSV_CW_HEADER, DEFAULT_CSV_CW_HEADER), 72 msg(CSV_CW_HEADER, DEFAULT_CSV_CW_HEADER),
73 msg(CSV_Q_HEADER, DEFAULT_CSV_Q_HEADER), 73 msg(CSV_Q_HEADER, DEFAULT_CSV_Q_HEADER),
74 msg(CSV_Q_DESC_HEADER, DEFAULT_CSV_Q_DESC_HEADER) 74 msg(CSV_Q_DESC_HEADER, DEFAULT_CSV_Q_DESC_HEADER)
75 }); 75 });
76 } 76 }
77 77
78 78 @Override
79 protected void wQKms2CSV( 79 protected void wQKms2CSV(
80 CSVWriter writer, 80 CSVWriter writer,
81 WQKms wqkms, 81 WQKms wqkms,
82 boolean atGauge, 82 boolean atGauge,
83 boolean isQ 83 boolean isQ,
84 boolean isOfficial
84 ) { 85 ) {
85 log.debug("WaterlevelExporter.wQKms2CSV"); 86 log.debug("DischargeLongitudinalSectionExporter.wQKms2CSV");
86 87
87 int size = wqkms.size(); 88 int size = wqkms.size();
88 double[] result = new double[4]; 89 double[] result = new double[4];
89 90
90 NumberFormat kmf = getKmFormatter(); 91 NumberFormat kmf = getKmFormatter();

http://dive4elements.wald.intevation.org