diff artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveGenerator.java @ 8331:27d42c9ee367

Main values: Reduce code duplication and correct logic to specify whether we are at gauge or not.
author "Tom Gottfried <tom@intevation.de>"
date Fri, 26 Sep 2014 09:44:48 +0200
parents 2b0ff11cef3f
children 5e38e2924c07
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveGenerator.java	Fri Sep 26 08:40:20 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DurationCurveGenerator.java	Fri Sep 26 09:44:48 2014 +0200
@@ -197,11 +197,7 @@
                 attr,
                 visible);
         }
-        else if (name.equals(DURATION_MAINVALUES_Q)
-                || name.equals(MAINVALUES_Q)
-                || name.equals(COMPUTED_DISCHARGE_MAINVALUES_W)
-                || name.equals(MAINVALUES_W)
-        ) {
+        else if (name.equals(MAINVALUES_Q) || name.equals(MAINVALUES_W)) {
             doAnnotations(
                 (RiverAnnotation) artifactFacet.getData(context),
                 artifactFacet,

http://dive4elements.wald.intevation.org