Skip to content

Commit 15feece

Browse files
Update src/main/java/org/z3950/zing/cql/CQLGenerator.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 204e466 commit 15feece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/z3950/zing/cql/CQLGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ boolean maybe(String param) throws MissingParameterException {
280280
throw new MissingParameterException(param);
281281

282282
double dice = rnd.nextDouble();
283-
double threshhold = new Double(probability).doubleValue();
283+
double threshhold = Double.parseDouble(probability);
284284
boolean res = dice < threshhold;
285285
debug("dice=" + String.valueOf(dice).substring(0, 8) +
286286
" vs. " + threshhold + "='" + param + "': " + res);

0 commit comments

Comments
 (0)