Fix centroids equality tests in TDigestState#equals
This commit is contained in:
parent
5a668c4add
commit
22870cc6c0
|
@ -116,9 +116,4 @@ public class InternalTDigestPercentileRanks extends AbstractInternalTDigestPerce
|
|||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean doEquals(Object obj) {
|
||||
return super.doEquals(obj);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue