changeset 4036:10e20830e4e9

Use static method from class not object.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 04 Oct 2012 16:40:08 +0200
parents 470a61d644cd
children 52a280532c2f
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Oct 04 16:28:29 2012 +0200
+++ b/flys-artifacts/ChangeLog	Thu Oct 04 16:40:08 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-04	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java:
+	  Prefer to use static method on Class (vs. on object).
+
 2012-10-04	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/StaticState.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java	Thu Oct 04 16:28:29 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java	Thu Oct 04 16:40:08 2012 +0200
@@ -250,8 +250,7 @@
             WKms data = (WKms) wqkms;
             // Assume its WKms.
             double location = getRange()[0];
-            double w = ((StaticWKmsArtifact) aandf.getArtifact())
-                .getWAtKmLin(data, getRange()[0]);
+            double w = StaticWKmsArtifact.getWAtKmLin(data, getRange()[0]);
             xy.add(new StickyAxisAnnotation(aandf.getFacetDescription(),
               (float) w, StickyAxisAnnotation.SimpleAxis.Y_AXIS));
 

http://dive4elements.wald.intevation.org