Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java @ 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 | 97ad960f5579 |
children | 3dc26ec2558d |
line wrap: on
line diff
--- 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));