Skip to content

Commit

Permalink
Bugfix: check valid range
Browse files Browse the repository at this point in the history
  • Loading branch information
prasser committed Jul 10, 2017
1 parent 0f02579 commit 8e6a8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/org/deidentifier/arx/ARXResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ public int optimizeFast(DataHandle handle,
}

// Check bounds
if (!Double.isNaN(records) && (records < 0d || records > 1d)) {
throw new IllegalArgumentException("Number of records to optimize must be in [0, 1]");
if (!Double.isNaN(records) && (records <= 0d || records > 1d)) {
throw new IllegalArgumentException("Number of records to optimize must be in ]0, 1]");
}

// Check bounds
Expand Down

0 comments on commit 8e6a8d7

Please sign in to comment.