[Dive4elements-commits] [PATCH 11 of 12] Minor refac

Wald Commits scm-commit at wald.intevation.org
Wed Jun 12 11:51:20 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1371030685 -7200
# Node ID 4c2025ec109f5352a345a1acad0136da96a114f3
# Parent  1173e9f47b5270732081876be4719ed3e69069a8
Minor refac.

diff -r 1173e9f47b52 -r 4c2025ec109f backend/src/main/java/org/dive4elements/river/importer/parsers/WaterlevelDifferencesParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/WaterlevelDifferencesParser.java	Wed Jun 12 11:43:34 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/WaterlevelDifferencesParser.java	Wed Jun 12 11:51:25 2013 +0200
@@ -164,8 +164,9 @@
             String name = cols[i].replace("\"", "");
 
             log.debug("Create new column '" + name + "'");
-            current.getColumn(i).setName(name);
-            current.getColumn(i).setDescription(name);
+            ImportWstColumn column = current.getColumn(i);
+            column.setName(name);
+            column.setDescription(name);
 
             Matcher m = YEARS_IN_COLUMN.matcher(name);
 


More information about the Dive4elements-commits mailing list