comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/HYKParser.java @ 3334:2ae732e2c65c

FLYS backend: Removed trailing whitespace. flys-backend/trunk@4669 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 15 Jun 2012 09:20:49 +0000
parents c5c48f52dc7b
children 36edf9a71cbd
comparison
equal deleted inserted replaced
3333:76c75c8b9ee0 3334:2ae732e2c65c
223 log.error("5: not enough elements in line " + 223 log.error("5: not enough elements in line " +
224 in.getLineNumber()); 224 in.getLineNumber());
225 return false; 225 return false;
226 } 226 }
227 try { 227 try {
228 for (int i = 0; 228 for (int i = 0;
229 i < parts.length && coordPos < coords.length; 229 i < parts.length && coordPos < coords.length;
230 ++i, ++coordPos 230 ++i, ++coordPos
231 ) { 231 ) {
232 coords[coordPos] = new BigDecimal(parts[i]); 232 coords[coordPos] = new BigDecimal(parts[i]);
233 } 233 }
234 } 234 }
235 catch (NumberFormatException nfe) { 235 catch (NumberFormatException nfe) {
236 log.error("cannot parse number in line " + 236 log.error("cannot parse number in line " +
237 in.getLineNumber()); 237 in.getLineNumber());
238 return false; 238 return false;
239 } 239 }
240 for (int i = 0; i < coords.length; ++i) { 240 for (int i = 0; i < coords.length; ++i) {
241 BigDecimal a = coords[i]; 241 BigDecimal a = coords[i];
242 BigDecimal b = coords[i == coords.length-1 ? i : i+1]; 242 BigDecimal b = coords[i == coords.length-1 ? i : i+1];
243 if (a.compareTo(b) > 0) { 243 if (a.compareTo(b) > 0) {
244 log.warn("zone coordinates swapped in line " + 244 log.warn("zone coordinates swapped in line " +
245 in.getLineNumber()); 245 in.getLineNumber());
246 BigDecimal c = a; a = b; b = c; 246 BigDecimal c = a; a = b; b = c;
247 } 247 }
248 ImportHYKFlowZone zone = new ImportHYKFlowZone( 248 ImportHYKFlowZone zone = new ImportHYKFlowZone(
249 formation, fzts[i], a, b); 249 formation, fzts[i], a, b);

http://dive4elements.wald.intevation.org