Skip to content

Commit

Permalink
Fix a param validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bxt committed May 20, 2015
1 parent dd96621 commit c69afe2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ public int getMeasurementsSize() {
}

private void checkBounds(int point) {
if(point < 0) throw new IllegalArgumentException("Point numbers must be postive.");
if(point < 1) throw new IllegalArgumentException("Point numbers must be postive.");
if(point > pointsSize) throw new IllegalArgumentException("Point number exceeds point count.");
}

Expand Down

0 comments on commit c69afe2

Please sign in to comment.