File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lucene/core/src/java/org/apache/lucene/store Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2727import java .util .TreeMap ;
2828import java .util .TreeSet ;
2929import org .apache .lucene .util .BitUtil ;
30+ import org .apache .lucene .util .GroupVIntUtil ;
3031
3132/**
3233 * Abstract base class for performing read operations of Lucene's low-level data types.
@@ -104,14 +105,15 @@ public int readInt() throws IOException {
104105 *
105106 * <p>If you have implemented this method, simply remove it!
106107 *
107- * @throws UnsupportedOperationException (always)
108108 * @lucene.experimental
109- * @deprecated This method is no longer called. It is only kept for backwards compatibility
109+ * @deprecated This method is no longer called by Lucene. It is only kept for backwards
110+ * compatibility. Code calling this method should migrate to {@link
111+ * GroupVIntUtil#readGroupVInts(DataInput, int[], int)} to decode a full group including tails
112+ * instead.
110113 */
111114 @ Deprecated
112115 public void readGroupVInt (int [] dst , int offset ) throws IOException {
113- throw new UnsupportedOperationException (
114- "This method is no longer called by Lucene's code and custom code should also not call it." );
116+ GroupVIntUtil .readGroupVInt (this , dst , offset );
115117 }
116118
117119 /**
You can’t perform that action at this time.
0 commit comments