Skip to content

Commit

Permalink
Fix test problem
Browse files Browse the repository at this point in the history
  • Loading branch information
leerho committed Dec 25, 2023
1 parent 0521a13 commit a0e833e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ public QuantilesDoublesSketchIterator iterator() {
@Override
public final void merge(final KllSketch other) {
if (readOnly || sketchStructure != UPDATABLE) { throw new SketchesArgumentException(TGT_IS_READ_ONLY_MSG); }
if (other.isEmpty()) { return; }
KllDoublesHelper.mergeDoubleImpl(this, (KllDoublesSketch)other);
final KllDoublesSketch othDblSk = (KllDoublesSketch)other; //check cast first
if (othDblSk.isEmpty()) { return; } //then check empty
KllDoublesHelper.mergeDoubleImpl(this, othDblSk);
kllDoublesSV = null;
}

Expand Down

0 comments on commit a0e833e

Please sign in to comment.