From 14cf83b46032590eb01477baec0f427dc13c5aa3 Mon Sep 17 00:00:00 2001 From: jmalkin <786705+jmalkin@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:29:36 -0800 Subject: [PATCH] backport security fixes PR so we can create a 5.0.2 release --- .../java/org/apache/datasketches/quantiles/ItemsSketch.java | 2 +- .../apache/datasketches/quantiles/ItemsSketchSortedView.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/datasketches/quantiles/ItemsSketch.java b/src/main/java/org/apache/datasketches/quantiles/ItemsSketch.java index 3d51363fa..aa446ccd7 100644 --- a/src/main/java/org/apache/datasketches/quantiles/ItemsSketch.java +++ b/src/main/java/org/apache/datasketches/quantiles/ItemsSketch.java @@ -682,7 +682,7 @@ ItemsSketchSortedView getSV() { } return new ItemsSketchSortedView( - quantiles, cumWeights, getN(), comparator, getMaxItem(), getMinItem(), getK()); + quantiles, cumWeights, getN(), comparator, getMaxItem(), getMinItem()); } } diff --git a/src/main/java/org/apache/datasketches/quantiles/ItemsSketchSortedView.java b/src/main/java/org/apache/datasketches/quantiles/ItemsSketchSortedView.java index b4a8fd98d..a1935cffc 100644 --- a/src/main/java/org/apache/datasketches/quantiles/ItemsSketchSortedView.java +++ b/src/main/java/org/apache/datasketches/quantiles/ItemsSketchSortedView.java @@ -28,7 +28,6 @@ import java.lang.reflect.Array; import java.util.Comparator; -import org.apache.datasketches.common.SketchesArgumentException; import org.apache.datasketches.quantilescommon.GenericInequalitySearch.Inequality; import org.apache.datasketches.quantilescommon.GenericPartitionBoundaries; import org.apache.datasketches.quantilescommon.GenericSortedView;