Skip to content

Commit a72dec9

Browse files
committed
Fix
1 parent f9e42d9 commit a72dec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/datastructures/bloomfilter/BloomFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public BloomFilter(int numberOfHashFunctions, int bitArraySize) {
3838
}
3939
this.numberOfHashFunctions = numberOfHashFunctions;
4040
this.bitArray = new BitSet(bitArraySize);
41-
this.hashFunctions = new Hash[numberOfHashFunctions];
41+
this.hashFunctions = (Hash<T>[]) new Hash<?>[numberOfHashFunctions];
4242
initializeHashFunctions();
4343
}
4444

0 commit comments

Comments
 (0)