Skip to content

Commit

Permalink
Changed error message and Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfredrich committed Apr 16, 2014
1 parent 3f84e1e commit 3ce4665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/java/org/restexpress/common/query/QueryRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ public boolean hasLimit()
* Set the query limit, which represents the maximum number of results returned
* in a query.
*
* @param value an integer >= zero
* @param value an integer > zero
* @throws IllegalArgumentException if the limit is less-than zero
*/
public void setLimit(int value)
{
if (value < 0) throw new IllegalArgumentException("limit must be >= 0");
if (value <= 0) throw new IllegalArgumentException("limit must be > 0");

this.limit = Integer.valueOf(value);
}
Expand Down

0 comments on commit 3ce4665

Please sign in to comment.