Remove deprecated methods from Theta AnotB
diff --git a/src/main/java/org/apache/datasketches/theta/AnotB.java b/src/main/java/org/apache/datasketches/theta/AnotB.java
index 7ecc3bd..783294d 100644
--- a/src/main/java/org/apache/datasketches/theta/AnotB.java
+++ b/src/main/java/org/apache/datasketches/theta/AnotB.java
@@ -196,47 +196,4 @@
public abstract CompactSketch aNotB(Sketch skA, Sketch skB, boolean dstOrdered,
WritableMemory dstMem);
- //Deprecated methods
-
- /**
- * @see #aNotB(Sketch, Sketch)
- *
- * @param skA The incoming sketch for the first argument
- * @param skB The incoming sketch for the second argument
- * @deprecated v2.0.0. Instead use {@link #aNotB(Sketch, Sketch)}.
- */
- @Deprecated
- public abstract void update(Sketch skA, Sketch skB);
-
- /**
- * Gets the result of the stateful operations, {@link #setA(Sketch)} and {@link #notB(Sketch)},
- * as an ordered CompactSketch on the Java heap.
- * This clears the state of this operator after the result is returned.
- * @return the result of the stateful operations as an ordered CompactSketch on the Java heap.
- * @deprecated v2.0.0. Instead use {@link #getResult(boolean)} or
- * {@link #getResult(boolean, WritableMemory, boolean)}.
- */
- @Deprecated
- public CompactSketch getResult() {
- return getResult(true, null, true);
- }
-
- /**
- * Gets the result of the stateful operations {@link #setA(Sketch)} and {@link #notB(Sketch)}.
- * This clears the state of this operator after the result is returned.
- * @param dstOrdered
- * <a href="{@docRoot}/resources/dictionary.html#dstOrdered">See Destination Ordered</a>.
- *
- * @param dstMem
- * <a href="{@docRoot}/resources/dictionary.html#dstMem">See Destination Memory</a>.
- *
- * @return the result of this set operation as a CompactSketch of the chosen form.
- * @deprecated v2.0.0. Instead use {@link #getResult(boolean)} or
- * {@link #getResult(boolean, WritableMemory, boolean)}.
- */
- @Deprecated
- public CompactSketch getResult(final boolean dstOrdered, final WritableMemory dstMem) {
- return getResult(dstOrdered, dstMem, true);
- }
-
}
diff --git a/src/main/java/org/apache/datasketches/theta/AnotBimpl.java b/src/main/java/org/apache/datasketches/theta/AnotBimpl.java
index 8d5f9e6..35e3241 100644
--- a/src/main/java/org/apache/datasketches/theta/AnotBimpl.java
+++ b/src/main/java/org/apache/datasketches/theta/AnotBimpl.java
@@ -222,17 +222,4 @@
return empty_;
}
- //Deprecated methods
-
- @Deprecated //v2.0.0.
- @Override
- public void update(final Sketch skA, final Sketch skB) {
- //duplicate old behavior
- reset();
- if (skA == null) { return; }
- else { setA(skA); }
- if (skB == null) { return; }
- else { notB(skB); }
- }
-
}
diff --git a/src/test/java/org/apache/datasketches/theta/SingleItemSketchTest.java b/src/test/java/org/apache/datasketches/theta/SingleItemSketchTest.java
index bb50617..70fc872 100644
--- a/src/test/java/org/apache/datasketches/theta/SingleItemSketchTest.java
+++ b/src/test/java/org/apache/datasketches/theta/SingleItemSketchTest.java
@@ -277,8 +277,9 @@
sk1.update(1);
sk2.update(2);
AnotB aNotB = Sketches.setOperationBuilder().buildANotB();
- aNotB.update(sk1, sk2);
- csk = aNotB.getResult(true, null);
+ aNotB.setA(sk1);
+ aNotB.notB(sk2);
+ csk = aNotB.getResult(true, null, true);
assertTrue(csk instanceof SingleItemSketch);
//not AnotB off-heap form
}