# HG changeset patch # User Felix Wolfsteller # Date 1349361608 -7200 # Node ID 10e20830e4e922f6e977e8a7bbab78306d177071 # Parent 470a61d644cdac03d40a1f74389c488b8867af09 Use static method from class not object. diff -r 470a61d644cd -r 10e20830e4e9 flys-artifacts/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/artifacts/states/StaticState.java: diff -r 470a61d644cd -r 10e20830e4e9 flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.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));