[PATCH 3 of 4] WQDay is increasing(?) if it is empty of last is greater than first
Wald Commits
scm-commit at wald.intevation.org
Thu Oct 31 18:34:17 CET 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1383240646 -3600
# Node ID 8b614d152a79439c6eb51c1ca83dd2e8fa87e224
# Parent f206f6049b2bdae9f73ce8a3f92f35082b4cf54a
WQDay is increasing(?) if it is empty of last is greater than first.
diff -r f206f6049b2b -r 8b614d152a79 artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQDay.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQDay.java Thu Oct 31 18:26:49 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQDay.java Thu Oct 31 18:30:46 2013 +0100
@@ -44,10 +44,7 @@
public boolean isIncreasing() {
- int lo = getDay(0);
- int hi = getDay(size()-1);
-
- return lo < hi;
+ return size() == 0 || getDay(0) < getDay(size()-1);
}
More information about the Dive4elements-commits
mailing list