changeset 2204:45f7762767e2

Bugfix: use correct order of parameters to call DefaultStateData constructor. flys-artifacts/trunk@3828 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 30 Jan 2012 13:23:40 +0000
parents 1db66b88868f
children a22e0cb6eace
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StateFactory.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Jan 30 10:54:38 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon Jan 30 13:23:40 2012 +0000
@@ -1,3 +1,8 @@
+2012-01-30  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/states/StateFactory.java:
+	  Bugfix: use correct order of parameters in DefaultStateData constructor.
+
 2012-01-30  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/artifacts/winfo.xml: Fixed a stupid bug. Use
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StateFactory.java	Mon Jan 30 10:54:38 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/StateFactory.java	Mon Jan 30 13:23:40 2012 +0000
@@ -114,7 +114,8 @@
                 type = "string";
             }
 
-            state.addData(name, new DefaultStateData(name, type, desc));
+            logger.debug("add StateData '" + name + "' (type '" + type + "')");
+            state.addData(name, new DefaultStateData(name, desc, type));
         }
     }
 }

http://dive4elements.wald.intevation.org