This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
commit 2c35b9c1c9bdad91c4ebba47eb506692faab3400 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 13 16:13:01 2024 -0400 Remove useless call to String.format() --- src/main/java/org/apache/commons/collections4/bloomfilter/Shape.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/Shape.java b/src/main/java/org/apache/commons/collections4/bloomfilter/Shape.java index 28667c309..86cd9cd07 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/Shape.java +++ b/src/main/java/org/apache/commons/collections4/bloomfilter/Shape.java @@ -137,8 +137,7 @@ public final class Shape { // exp(-1/Integer.MAX_INT) approx 0.9999999995343387 so Math.pow( x, y ) will // always be 0<x<1 and y>0 if (probability >= 1.0) { - throw new IllegalArgumentException( - String.format("Calculated probability is greater than or equal to 1: " + probability)); + throw new IllegalArgumentException("Calculated probability is greater than or equal to 1: " + probability); } }