diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java b/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java index 7b84730db..d4091cdd2 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java +++ b/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java @@ -132,7 +132,7 @@ public class EnhancedDoubleHasher implements Hasher { /** * Performs a modulus calculation on an unsigned long and an integer divisor. * @param dividend a unsigned long value to calculate the modulus of. - * @param divisor the divisor for the modulus calculation. + * @param divisor the divisor for the modulus calculation (must be strictly positive). * @return the remainder or modulus value. */ static int mod(final long dividend, final int divisor) { diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBloomFilterTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBloomFilterTest.java index 7211779e4..4b5a275e5 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBloomFilterTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractBloomFilterTest.java @@ -247,7 +247,7 @@ public abstract class AbstractBloomFilterTest { } /** - * Tests that the andCardinality calculations are correct. + * Tests that the estimated union calculations are correct. */ @Test public final void testEstimateUnion() {