[PATCH] Another nice flys feature... double == comparison
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 6 17:02:50 CET 2018
# HG changeset patch
# User gernotbelger
# Date 1520352165 -3600
# Node ID f972e1da4a633c69ba18a856a0c2892fa1b07151
# Parent 8d112ba941478178a6635b59f560eb22c8a8c796
Another nice flys feature... double == comparison
diff -r 8d112ba94147 -r f972e1da4a63 artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java
--- a/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java Tue Mar 06 17:01:52 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java Tue Mar 06 17:02:45 2018 +0100
@@ -591,6 +591,7 @@
log.debug("Search named main value for: " + value);
for (MainValue mv: mainValues) {
+ // FIXME: no-go! double == comparison... its simply a wonder that this works in release mode, it definitively does not work in debug mode!
if (mv.getValue().doubleValue() == value) {
log.debug("Found named main value: "
+ mv.getMainValue().getName());
More information about the Dive4Elements-commits
mailing list