# HG changeset patch # User Sascha L. Teichmann # 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); }