Mercurial > dive4elements > river
changeset 6965:69bf96202df4
SedimentLoadFactory: Minor simplification.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 05 Sep 2013 15:27:56 +0200 |
parents | 5a348e3df0f8 |
children | 328854c0467f |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java Thu Sep 05 15:23:54 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java Thu Sep 05 15:27:56 2013 +0200 @@ -495,21 +495,19 @@ if (stations.ceilingEntry(km + 0.1d) != null) { nextStation = stations.ceilingEntry(km + 0.1d).getValue(); } - Range range = null; if (station == null) { return null; } else { if (nextStation != null) - range = new Range(station.getRange().getA().doubleValue(), + return new Range(station.getRange().getA().doubleValue(), nextStation.getRange().getA().doubleValue()); else { // TODO end-of-river instead of B. - range = new Range(station.getRange().getA().doubleValue(), + return new Range(station.getRange().getA().doubleValue(), station.getRange().getB().doubleValue()); } } - return range; } /**