Skip to content

Commit

Permalink
fix: validation of TimeRange (#1890)
Browse files Browse the repository at this point in the history
* fix: varidation of TimeRange

* fix: validation of TimeRange
  • Loading branch information
Hiroki Mizukami authored and sduskis committed Jul 19, 2018
1 parent 87cb10c commit 7f404e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public RequestBuilder timeRange(long start, long end) {
if (start == 0L && end == Long.MAX_VALUE) {
return this;
}
Preconditions.checkArgument(start < 0L || (start >= end), "Invalid start/end");
Preconditions.checkArgument((0L <= start) && (start < end), "Invalid start/end");
this.timeFilter = new TimestampRangeFilter(start, end);
return this;
}
Expand Down

0 comments on commit 7f404e4

Please sign in to comment.