Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | e4606eae8ea5 |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java Thu Jan 18 20:12:01 2018 +0100 @@ -72,7 +72,10 @@ private static final Comparator<SedimentDensityValue> BY_KM = new Comparator<SedimentDensityValue>() { @Override - public int compare(SedimentDensityValue a, SedimentDensityValue b) { + public int compare( + SedimentDensityValue a, + SedimentDensityValue b + ) { double diff = a.getKm() - b.getKm(); if (diff < 0.0) return -1; if (diff > 0.0) return +1; @@ -120,7 +123,8 @@ } if (densities.size() == 1) { - Map.Entry<Integer, List<SedimentDensityValue>> entry = densities.firstEntry(); + Map.Entry<Integer, List<SedimentDensityValue>> entry = + densities.firstEntry(); return entry.getKey() <= year ? getDensityAtKm(entry.getValue(), km) : SEDIMNET_DENSITY_FACTOR; @@ -132,7 +136,8 @@ Map.Entry<Integer, List<SedimentDensityValue>> last = iter.next(); while (iter.hasNext()) { - Map.Entry<Integer, List<SedimentDensityValue>> current = iter.next(); + Map.Entry<Integer, List<SedimentDensityValue>> current = + iter.next(); last = current; int y1 = last.getKey(); int y2 = current.getKey();