Mercurial > dive4elements > river
diff backend/src/main/java/org/dive4elements/river/importer/parsers/HYKParser.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 | 139b057a39dd |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/HYKParser.java Thu Jan 18 20:10:59 2018 +0100 +++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/HYKParser.java Thu Jan 18 20:12:01 2018 +0100 @@ -184,8 +184,8 @@ } catch (NumberFormatException nfe) { log.error( - "HYK: parsing num zones, bottom or top height " + - "failed in line " + in.getLineNumber()); + "HYK: parsing num zones, bottom or top height " + + "failed in line " + in.getLineNumber()); return false; } @@ -266,11 +266,14 @@ for (int i = 0; i < coords.length; ++i) { BigDecimal a = coords[i]; BigDecimal b = i == coords.length-1 - ? (lastZoneEnd != null ? lastZoneEnd : coords[i]) + ? (lastZoneEnd != null + ? lastZoneEnd + : coords[i]) : coords[i+1]; if (a.compareTo(b) > 0) { - log.warn("HYK: zone coordinates swapped in line " + + log.warn( + "HYK: zone coordinates swapped in line " + in.getLineNumber()); BigDecimal c = a; a = b; b = c; }