From 0bf1eae92c4117659e2608111a8d64294009cc98 Mon Sep 17 00:00:00 2001 From: Chris Hostetter Date: Mon, 21 May 2018 16:18:27 -0700 Subject: [PATCH] SOLR-9480 followup: remove/abstract deprecated implementations on master --- .../org/apache/solr/search/facet/SlotAcc.java | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java b/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java index 9c12aff99ea..244485e4991 100644 --- a/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java +++ b/solr/core/src/java/org/apache/solr/search/facet/SlotAcc.java @@ -68,20 +68,9 @@ public abstract class SlotAcc implements Closeable { } /** - * @deprecated This method exists only for backcompatibility, developers of new {@link SlotAcc} - * implementations should not implement this method, and should instead override - * {@link #collect(int,int,IntFunction)} - */ - @Deprecated - public void collect(int doc, int slot) throws IOException { - throw new UnsupportedOperationException - ("SlotAcc implementations must implement 'collect(int,int,IntFunction)' or the (deprecated)" - + "'collect(int,int)'"); - } - - /** - * All subclasses should override this method, for backcompatability the default implementaion - * delegates to the (deprecated) {@link #collect(int,int)} + * All subclasses must override this method to collect documents. This method is called by the + * default impl of {@link #collect(DocSet,int,IntFunction)} but it's also neccessary if this accumulator + * is used for sorting. * * @param doc Single Segment docId (relative to the current {@link LeafReaderContext} to collect * @param slot The slot number to collect this document in @@ -90,10 +79,7 @@ public abstract class SlotAcc implements Closeable { * the current slot, and the {@link SlotContext} returned is only valid for the duration * of the collect() call. */ - @Deprecated - public void collect(int doc, int slot, IntFunction slotContext) throws IOException { - collect(doc,slot); - } + public abstract void collect(int doc, int slot, IntFunction slotContext) throws IOException; /** * Bulk collection of all documents in a slot. The default implementation calls {@link #collect(int,int,IntFunction)}