diff backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.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 f3078357ec65
children 0a5239a1e46e
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java	Thu Jan 18 20:12:01 2018 +0100
@@ -107,7 +107,8 @@
 
                 String second = line.substring(
                     pos + firstIntegerPlaces,
-                    Math.min(L, pos + firstIntegerPlaces + secondIntegerPlaces));
+                    Math.min(
+                        L, pos + firstIntegerPlaces + secondIntegerPlaces));
 
                 double x, y;
                 try {
@@ -284,7 +285,8 @@
             Matcher m = DATA_PATTERN.matcher(line);
 
             if (!m.matches()) {
-                log.warn("PRF: First line does not look like a PRF data pattern.");
+                log.warn(
+                    "PRF: First line does not look like a PRF data pattern.");
                 return false;
             }
 
@@ -318,7 +320,8 @@
 
             if (!m.matches()) {
                 log.warn(
-                    "PRF: line 4 does not look like a PRF km extraction pattern.");
+                    "PRF: line 4 does not look like "
+                    + "a PRF km extraction pattern.");
                 return false;
             }
 
@@ -356,7 +359,8 @@
                     km = kmFormat.extractKm(line);
                 }
                 catch (NumberFormatException iae) {
-                    log.warn("PRF: cannot extract km in line " + in.getLineNumber());
+                    log.warn("PRF: cannot extract km in line "
+                        + in.getLineNumber());
                     return false;
                 }
 
@@ -369,7 +373,8 @@
                 if (kmData == null) {
                     kmData = new ArrayList<XY>();
                     data.put(station, kmData);
-                    // When a station change occurs, dummy lines will occur, too.
+                    // When a station change occurs,
+                    // dummy lines will occur, too.
                     skip = lineSkipCount -1;
                     continue;
                 }
@@ -404,8 +409,10 @@
         description = null;
     }
 
-    public void parsePRFs(File root, final CrossSectionParser.Callback callback) {
-
+    public void parsePRFs(
+        File root,
+        final CrossSectionParser.Callback callback
+    ) {
         FileTools.walkTree(root, new FileTools.FileVisitor() {
             @Override
             public boolean visit(File file) {

http://dive4elements.wald.intevation.org