This commit is contained in:
Gary Gregory 2022-08-26 08:12:49 -04:00
commit 6f74aef97b
2 changed files with 7 additions and 3 deletions

View File

@ -116,11 +116,15 @@ public class HasherCollection implements Hasher {
/**
* IndexProducer that will return duplicates from the collection.
*
*/
class HasherCollectionIndexProducer implements IndexProducer {
private class HasherCollectionIndexProducer implements IndexProducer {
private final Shape shape;
/**
* Create an instance.
*
* @param shape The shape for the filter.
*/
HasherCollectionIndexProducer(Shape shape) {
this.shape = shape;
}

View File

@ -113,7 +113,7 @@ public final class SparseBloomFilter implements BloomFilter {
private SparseBloomFilter(SparseBloomFilter source) {
shape = source.shape;
indices = new TreeSet<Integer>(source.indices);
indices = new TreeSet<>(source.indices);
}
@Override