changeset 3561:f7e6b35f0b5c

Partly reverted Double->double change of clins. flys-artifacts/trunk@5158 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 29 Jul 2012 16:04:40 +0000
parents 6b1e228959a6
children 988ec06c400a
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sun Jul 29 12:30:35 2012 +0000
+++ b/flys-artifacts/ChangeLog	Sun Jul 29 16:04:40 2012 +0000
@@ -1,3 +1,11 @@
+2012-07-29	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java:
+	  getCurrentKmFromRequest returns Double(!) not double.
+
+	* src/main/java/de/intevation/flys/utils/ThemeUtil.java:
+	  Use Double.parseDouble() instead od Double.valueOf().
+
 2012-07-29	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/SQRelation.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java	Sun Jul 29 12:30:35 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java	Sun Jul 29 16:04:40 2012 +0000
@@ -429,7 +429,7 @@
         valueMarker.add(marker);
     }
 
-    protected double getCurrentKmFromRequest() {
+    protected Double getCurrentKmFromRequest() {
         Element km = (Element)XMLUtils.xpath(
             request,
             XPATH_CHART_CURRENTKM,
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Sun Jul 29 12:30:35 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java	Sun Jul 29 16:04:40 2012 +0000
@@ -177,7 +177,7 @@
         }
 
         try {
-            return Double.valueOf(value);
+            return Double.parseDouble(value);
         }
         catch (NumberFormatException nfe) {
             // do nothing

http://dive4elements.wald.intevation.org