changeset 5742:a4a894b15c35

Minor part of issue1235: dont show decimals of years.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 17 Apr 2013 10:06:13 +0200
parents 0516c1f8f674
children 80b9218ac007
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java	Wed Apr 17 09:25:07 2013 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadCalculation.java	Wed Apr 17 10:06:13 2013 +0200
@@ -258,23 +258,23 @@
         logger.debug("calculateTotalLoad");
         boolean problemThisYear = false;
         if (!load.hasCoarse()) {
-            addProblem("missing.fraction.coarse", Double.toString(year));
+            addProblem("missing.fraction.coarse", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasFineMiddle()) {
-            addProblem("missing.fraction.fine_middle", Double.toString(year));
+            addProblem("missing.fraction.fine_middle", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasSand()) {
-            addProblem("missing.fraction.sand", Double.toString(year));
+            addProblem("missing.fraction.sand", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasSuspSand()) {
-            addProblem("missing.fraction.susp_sand", Double.toString(year));
+            addProblem("missing.fraction.susp_sand", Integer.toString(year));
             problemThisYear = true;
         }
         if (!load.hasSuspSediment()) {
-            addProblem("missing.fraction.susp_sediment", Double.toString(year));
+            addProblem("missing.fraction.susp_sediment", Integer.toString(year));
             problemThisYear = true;
         }
         if (problemThisYear) {

http://dive4elements.wald.intevation.org