Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git
This commit is contained in:
commit
6f74aef97b
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue