[Dive4elements-commits] [PATCH 1 of 3] W80Parser: Cosmetics, whitespace, TODO resolved, logging improved

Wald Commits scm-commit at wald.intevation.org
Wed Jan 16 11:23:14 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358327466 -3600
# Node ID 7dd5baca4f53a1a55f6a66d1d4a83e5b756e28f3
# Parent  6aa1b8abe2d36dd7a4fef5ee126c3cb68cd34a58
W80Parser: Cosmetics, whitespace, TODO resolved, logging improved.

diff -r 6aa1b8abe2d3 -r 7dd5baca4f53 flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Tue Jan 15 13:32:14 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Wed Jan 16 10:11:06 2013 +0100
@@ -103,7 +103,6 @@
 
     public void parseW80s(File root, final Callback callback) {
 
-        // TODO use the removeExtension/guess description and date.
         FileTools.walkTree(root, new FileTools.FileVisitor() {
             @Override
             public boolean visit(File file) {
@@ -224,7 +223,7 @@
             anchor = new Anchor(gkRightKm, gkHighKm, heightM, stationKm);
             currentLine = new ArrayList<XY>();
             data.put(stationKm, currentLine);
-            currentLine.add(new XY(0d, heightM,0));
+            currentLine.add(new XY(0d, heightM, 0));
             try {
                 anchorDate = DateGuesser.guessDate(date);
             }
@@ -252,8 +251,8 @@
 
         logger.warn("Start parsing files.");
         for (String arg: args) {
+            logger.warn("Parsing a file.");
             parser.parseW80s(new File(arg), null);
-            logger.warn("Parsing a file.");
         }
         logger.error("Finished parsing files.");
     }


More information about the Dive4elements-commits mailing list