Skip to content

Commit d664abb

Browse files
committed
Fix @jpountz review comment after merge
1 parent 6245611 commit d664abb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lucene/core/src/java/org/apache/lucene/store/DataInput.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import java.util.TreeMap;
2828
import java.util.TreeSet;
2929
import 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
/**

0 commit comments

Comments
 (0)