Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/WaterlevelParser.java @ 7883:fc8d5b5f2c99
Removed trailing whitespace.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 16 May 2014 17:10:10 +0200 |
parents | ad2fdc34910a |
children | 07cc4cd9233e |
comparison
equal
deleted
inserted
replaced
7882:4534659e200e | 7883:fc8d5b5f2c99 |
---|---|
119 if (current != null) { | 119 if (current != null) { |
120 if (currentQRange != null) { | 120 if (currentQRange != null) { |
121 List<ImportWstColumnValue> cValues = column.getColumnValues(); | 121 List<ImportWstColumnValue> cValues = column.getColumnValues(); |
122 // Set end of range to last station | 122 // Set end of range to last station |
123 // or expand range to minimal length in case it would be 0 | 123 // or expand range to minimal length in case it would be 0 |
124 // TODO: should otherwise be extended to | 124 // TODO: should otherwise be extended to |
125 // (first station of next range - INTERVAL_GAP), | 125 // (first station of next range - INTERVAL_GAP), |
126 // assuming always ascending stations | 126 // assuming always ascending stations |
127 BigDecimal lastStation = cValues.get(cValues.size() -1).getPosition(); | 127 BigDecimal lastStation = cValues.get(cValues.size() -1).getPosition(); |
128 if (lastStation.compareTo(currentRange.getA()) == 0) { | 128 if (lastStation.compareTo(currentRange.getA()) == 0) { |
129 currentRange.setB(new BigDecimal(lastStation.doubleValue() | 129 currentRange.setB(new BigDecimal(lastStation.doubleValue() |
130 + INTERVAL_GAP)); | 130 + INTERVAL_GAP)); |
131 } | 131 } |
132 else { | 132 else { |
133 currentRange.setB(lastStation); | 133 currentRange.setB(lastStation); |
134 } | 134 } |