We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 204e466 commit 15feeceCopy full SHA for 15feece
src/main/java/org/z3950/zing/cql/CQLGenerator.java
@@ -280,7 +280,7 @@ boolean maybe(String param) throws MissingParameterException {
280
throw new MissingParameterException(param);
281
282
double dice = rnd.nextDouble();
283
- double threshhold = new Double(probability).doubleValue();
+ double threshhold = Double.parseDouble(probability);
284
boolean res = dice < threshhold;
285
debug("dice=" + String.valueOf(dice).substring(0, 8) +
286
" vs. " + threshhold + "='" + param + "': " + res);
0 commit comments