Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java @ 9761:c088f7a5797d 3.2.x
Reduce code duplication
RiverUtils.getValueFromWQ(wq) was equivalent to wq.getRawValue().
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 10 Nov 2022 18:16:25 +0100 |
parents | 0a5239a1e46e |
children | d5d250ad3c78 |
comparison
equal
deleted
inserted
replaced
9760:9bbb29142ddb | 9761:c088f7a5797d |
---|---|
636 WINFOArtifact winfo = (WINFOArtifact) flys; | 636 WINFOArtifact winfo = (WINFOArtifact) flys; |
637 colDesc = RiverUtils.getNamedMainValue( | 637 colDesc = RiverUtils.getNamedMainValue( |
638 winfo, wqkms.getRawValue()); | 638 winfo, wqkms.getRawValue()); |
639 // For 'W am Pegel' s | 639 // For 'W am Pegel' s |
640 if (colDesc == null) { | 640 if (colDesc == null) { |
641 Double value = RiverUtils.getValueFromWQ(wqkms); | 641 Double value = wqkms.getRawValue(); |
642 colDesc = (value != null) ? | 642 colDesc = (value != null) ? |
643 Formatter.getWaterlevelW(context).format(value) : null; | 643 Formatter.getWaterlevelW(context).format(value) : null; |
644 } | 644 } |
645 } | 645 } |
646 } | 646 } |