mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -66,8 +66,8 @@ public class BitSetBloomFilter implements BloomFilter{
|
||||
}
|
||||
|
||||
int[] positions = createHashes(str, hashFunctionNumber);
|
||||
for (int i = 0; i < positions.length; i++) {
|
||||
int position = Math.abs(positions[i] % bitSetSize);
|
||||
for (int value : positions) {
|
||||
int position = Math.abs(value % bitSetSize);
|
||||
bitSet.set(position, true);
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user