diff --git a/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java b/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java index 138414f3..85ee8754 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/solution/route/activity/TimeWindow.java @@ -49,8 +49,8 @@ public class TimeWindow { */ public TimeWindow(double start, double end) { super(); - if(start < 0.0 || end < 0.0) throw new IllegalArgumentException("neither start nor end must be < 0.0"); - if(end < start) throw new IllegalArgumentException("end cannot be smaller than start"); + if(start < 0.0 || end < 0.0) throw new IllegalArgumentException("neither time window start nor end must be < 0.0"); + if(end < start) throw new IllegalArgumentException("time window end cannot be smaller than its start"); this.start = start; this.end = end; }