Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java @ 7930:d3a4b0d5bcd8
Small Java related cosmetics.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 12 Jun 2014 19:16:30 +0200 |
parents | b0e2e4e0e2d2 |
children | 839032ac1523 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java Thu Jun 12 12:29:03 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java Thu Jun 12 19:16:30 2014 +0200 @@ -121,13 +121,13 @@ * If a conversion takes place converted is set to true */ public static WQ getFixedWQforExportAtGauge(WQ wq, BigDecimal datum) { - if (wq.getReferenceSystem() == wq.CENTIMETER_AT_GAUGE) { + if (wq.getReferenceSystem() == W.CENTIMETER_AT_GAUGE) { // Do nothing return wq; } // If we convert we work on a copy to avoid side effects. WQ ret = new WQ(wq.size(), wq.getName()); - ret.setReferenceSystem(wq.CENTIMETER_AT_GAUGE); + ret.setReferenceSystem(W.CENTIMETER_AT_GAUGE); // When we convert and have a datum we have a calculated // result at a gauge so we must subtract the datum.