Eliminate extra lines.

This commit is contained in:
aherbert 2020-02-17 12:56:53 +00:00
parent a3e2ea2443
commit 28b381008e
14 changed files with 0 additions and 21 deletions

View File

@ -273,5 +273,4 @@ public abstract class AbstractBloomFilter implements BloomFilter {
}
return BitSet.valueOf(result).cardinality();
}
}

View File

@ -115,7 +115,6 @@ public class BitSetBloomFilter extends AbstractBloomFilter {
}
}
@Override
public void merge(final Hasher hasher) {
verifyHasher(hasher);
@ -127,7 +126,6 @@ public class BitSetBloomFilter extends AbstractBloomFilter {
return bitSet.toString();
}
@Override
public int xorCardinality(final BloomFilter other) {
if (other instanceof BitSetBloomFilter) {
@ -138,5 +136,4 @@ public class BitSetBloomFilter extends AbstractBloomFilter {
}
return super.xorCardinality(other);
}
}

View File

@ -121,8 +121,4 @@ public interface BloomFilter {
* @return the cardinality of the result of {@code( this XOR other )}
*/
int xorCardinality(BloomFilter other);
}

View File

@ -33,7 +33,6 @@ import org.apache.commons.collections4.bloomfilter.hasher.Hasher;
import org.apache.commons.collections4.bloomfilter.hasher.Shape;
import org.apache.commons.collections4.bloomfilter.hasher.StaticHasher;
/**
* A counting Bloom filter.
* This Bloom filter maintains a count of the number of times a bit has been

View File

@ -139,5 +139,4 @@ public class HasherBloomFilter extends AbstractBloomFilter {
hasher.getBits(getShape()));
this.hasher = new StaticHasher(iter, getShape());
}
}

View File

@ -69,7 +69,6 @@ public final class SetOperations {
return estimateSize(first) - estimateUnionSize(first,second) + estimateSize(second);
}
/**
* Estimates the number of items in the Bloom filter based on the shape and the number
* of bits that are enabled.

View File

@ -176,5 +176,4 @@ public class DynamicHasher implements Hasher {
public boolean isEmpty() {
return buffers.isEmpty();
}
}

View File

@ -23,7 +23,6 @@ package org.apache.commons.collections4.bloomfilter.hasher;
*/
public interface HashFunction extends HashFunctionIdentity {
/**
* Applies the hash function to the buffer.
*
@ -32,5 +31,4 @@ public interface HashFunction extends HashFunctionIdentity {
* @return the long value of the hash.
*/
long apply(byte[] buffer, int seed);
}

View File

@ -157,5 +157,4 @@ public interface HashFunctionIdentity {
* @return signedness of this function.
*/
Signedness getSignedness();
}

View File

@ -84,5 +84,4 @@ public final class HashFunctionIdentityImpl implements HashFunctionIdentity {
public Signedness getSignedness() {
return signedness;
}
}

View File

@ -19,7 +19,6 @@ package org.apache.commons.collections4.bloomfilter.hasher;
import java.util.PrimitiveIterator;
/**
* The class that performs hashing.
* <p>

View File

@ -108,5 +108,4 @@ public final class MD5Cyclic implements HashFunction {
public Signedness getSignedness() {
return Signedness.SIGNED;
}
}

View File

@ -53,7 +53,6 @@ public final class Murmur128x86Cyclic implements HashFunction {
signature = apply(HashFunctionIdentity.prepareSignatureBuffer(this), 0);
}
@Override
public long apply(final byte[] buffer, final int seed) {
if (parts == null || seed == 0) {
@ -88,5 +87,4 @@ public final class Murmur128x86Cyclic implements HashFunction {
public Signedness getSignedness() {
return Signedness.SIGNED;
}
}

View File

@ -21,7 +21,6 @@ import java.util.Arrays;
import org.apache.commons.collections4.bloomfilter.hasher.HashFunction;
import org.apache.commons.collections4.bloomfilter.hasher.HashFunctionIdentity;
/**
* An implementation of HashFunction that
* performs {@code Objects.hash} hashing using a signed iterative method.