Mercurial > dive4elements > river
changeset 4802:7dd5baca4f53
W80Parser: Cosmetics, whitespace, TODO resolved, logging improved.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 16 Jan 2013 10:11:06 +0100 |
parents | 6aa1b8abe2d3 |
children | 94cb955234ab |
files | flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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."); }