Fix centroids equality tests in TDigestState#equals

This commit is contained in:
Jim Ferenczi 2017-03-02 11:27:04 +01:00
parent 5a668c4add
commit 22870cc6c0
2 changed files with 1 additions and 6 deletions

View File

@ -116,9 +116,4 @@ public class InternalTDigestPercentileRanks extends AbstractInternalTDigestPerce
throw new UnsupportedOperationException();
}
}
@Override
protected boolean doEquals(Object obj) {
return super.doEquals(obj);
}
}

View File

@ -72,7 +72,7 @@ public class TDigestState extends AVLTreeDigest {
return false;
}
Iterator<? extends Centroid> thisCentroids = centroids().iterator();
Iterator<? extends Centroid> thatCentroids = centroids().iterator();
Iterator<? extends Centroid> thatCentroids = that.centroids().iterator();
while (thisCentroids.hasNext()) {
if (thatCentroids.hasNext() == false) {
return false;