changeset 9468:c01f1e65903b

Fixed: error output of year contained dot
author gernotbelger
date Fri, 31 Aug 2018 17:11:32 +0200
parents 7d7aa54afe0c
children 6acd22e86951
files artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/BedQualityD50KmValueFinder.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/BedQualityD50KmValueFinder.java	Thu Aug 30 14:09:44 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/BedQualityD50KmValueFinder.java	Fri Aug 31 17:11:32 2018 +0200
@@ -148,7 +148,7 @@
             log.debug("loadValues: no kms found");
 
         if (kms.size() < 2 || values.size() < 2) {
-            problems.addProblem("bedqualityd50kmvaluefinder.empty", soundingYear);
+            problems.addProblem("bedqualityd50kmvaluefinder.empty", Integer.toString(soundingYear));
             return null;
         }
 
@@ -172,6 +172,7 @@
             return this.interpolator.value(km);
         }
         catch (final ArgumentOutsideDomainException e) {
+            // No stack trace because this might happen a lot (intended) and we produce an error message anyways.            
             // e.printStackTrace();
 
             if (this.problems != null) {

http://dive4elements.wald.intevation.org