comparison backend/src/main/java/org/dive4elements/river/importer/parsers/WaterlevelDifferencesParser.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 3bb1c62ad732
children 2693bfaf503d 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
182 182
183 183
184 /** Setup column structures with name, description and time interval. */ 184 /** Setup column structures with name, description and time interval. */
185 private void initColumns(String[] cols) { 185 private void initColumns(String[] cols) {
186 current.setNumberColumns(cols.length); 186 current.setNumberColumns(cols.length);
187 columns = current.getColumns().toArray(new ImportWstColumn[cols.length]); 187 columns = current.getColumns().toArray(
188 new ImportWstColumn[cols.length]);
188 189
189 for (int i = 0; i < cols.length; i++) { 190 for (int i = 0; i < cols.length; i++) {
190 String name = cols[i].replace("\"", ""); 191 String name = cols[i].replace("\"", "");
191 192
192 log.debug("Create new column '" + name + "'"); 193 log.debug("Create new column '" + name + "'");
222 log.warn("skip invalid waterlevel-diff line: '" + line + "'"); 223 log.warn("skip invalid waterlevel-diff line: '" + line + "'");
223 return; 224 return;
224 } 225 }
225 226
226 try { 227 try {
227 // The first value in a line like 12,9;4,3;4,5 is the station, later 228 // The first value in a line like 12,9;4,3;4,5 is the station,
228 // real values. 229 // later real values.
229 Double station = nf.parse(cols[0]).doubleValue(); 230 Double station = nf.parse(cols[0]).doubleValue();
230 231
231 for (int i = 0; i < columns.length; i++) { 232 for (int i = 0; i < columns.length; i++) {
232 int idx = i+1; 233 int idx = i+1;
233 234

http://dive4elements.wald.intevation.org