[PATCH 17 of 19] FlowVelocityGenerator: Simplify code a bit, master and its river is

Wald Commits scm-commit at wald.intevation.org
Mon Sep 30 17:30:42 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380555604 -7200
# Node ID c453f7ecf479006a56788e97c62361b1a9678631
# Parent  8079e3ba31c99596ec074d0b911341050d2df550
FlowVelocityGenerator: Simplify code a bit, master and its river is
exposed already.

diff -r 8079e3ba31c9 -r c453f7ecf479 artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java	Mon Sep 30 17:38:11 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityGenerator.java	Mon Sep 30 17:40:04 2013 +0200
@@ -32,7 +32,6 @@
 import org.dive4elements.river.jfree.StyledXYSeries;
 
 import org.dive4elements.river.themes.ThemeDocument;
-import org.dive4elements.river.utils.RiverUtils;
 
 
 /**
@@ -141,12 +140,10 @@
      */
     @Override
     protected String getDefaultXAxisLabel() {
-        D4EArtifact flys = (D4EArtifact) master;
-
         return msg(
             I18N_XAXIS_LABEL,
             I18N_XAXIS_LABEL_DEFAULT,
-            new Object[] { RiverUtils.getRiver(flys).getName() });
+            new Object[] { getRiverName() });
     }
 
 


More information about the Dive4elements-commits mailing list