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

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


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

diff -r cc11780b3491 -r db7d0600d39d 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