Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/CrossSectionArtifact.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 | 8d6e56e57c4a 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
135 if (!csls.isEmpty()) { | 135 if (!csls.isEmpty()) { |
136 CrossSectionLine csl = csls.get(0); | 136 CrossSectionLine csl = csls.get(0); |
137 // Find min-km of cross sections, | 137 // Find min-km of cross sections, |
138 // then set DATA_KM to min(DATA_KM, minCross). | 138 // then set DATA_KM to min(DATA_KM, minCross). |
139 String dataKmValue = getDataAsString(DATA_KM); | 139 String dataKmValue = getDataAsString(DATA_KM); |
140 double dataKm = (dataKmValue != null) ? Double.valueOf(dataKmValue) : Double.MIN_VALUE; | 140 double dataKm = (dataKmValue != null) |
141 ? Double.valueOf(dataKmValue) | |
142 : Double.MIN_VALUE; | |
141 if (dataKm < csl.getKm().doubleValue()) { | 143 if (dataKm < csl.getKm().doubleValue()) { |
142 addStringData(DATA_KM, csl.getKm().toString()); | 144 addStringData(DATA_KM, csl.getKm().toString()); |
143 } | 145 } |
144 } | 146 } |
145 fs.add(new CrossSectionFacet(0, cs.getDescription())); | 147 fs.add(new CrossSectionFacet(0, cs.getDescription())); |