Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java @ 5992:4c3ccf2b0304
Removed trailing whitespace.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 12 May 2013 18:08:41 +0200 |
parents | 4dd33b86dc61 |
children | 1bb4b51ff1e6 |
comparison
equal
deleted
inserted
replaced
5991:6f80d5f375fd | 5992:4c3ccf2b0304 |
---|---|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde | 1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by Intevation GmbH | 2 * Software engineering by Intevation GmbH |
3 * | 3 * |
4 * This file is Free Software under the GNU AGPL (>=v3) | 4 * This file is Free Software under the GNU AGPL (>=v3) |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 5 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
6 * documentation coming with Dive4Elements River for details. | 6 * documentation coming with Dive4Elements River for details. |
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.importer.parsers; | 9 package org.dive4elements.river.importer.parsers; |
10 | 10 |
11 import java.math.BigDecimal; | 11 import java.math.BigDecimal; |
91 } | 91 } |
92 catch (ParseException e) { | 92 catch (ParseException e) { |
93 log.warn("BSP: unparseable value in data row.", e); | 93 log.warn("BSP: unparseable value in data row.", e); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 private BigDecimal parseBigDecimal(String value, String line) { | 97 private BigDecimal parseBigDecimal(String value, String line) { |
98 BigDecimal result = null; | 98 BigDecimal result = null; |
99 try { | 99 try { |
100 Double dValue = Double.valueOf(value.replace(",", ".")); | 100 Double dValue = Double.valueOf(value.replace(",", ".")); |
101 result = new BigDecimal(dValue.doubleValue()); | 101 result = new BigDecimal(dValue.doubleValue()); |