You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2025/08/29 22:03:51 UTC

(lucene) branch branch_10x updated: Fix @jpountz review comment after merge

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_10x by this push:
     new d664abb181a Fix @jpountz review comment after merge
d664abb181a is described below

commit d664abb181a8299d4cdf671dd70348095d1a835e
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sat Aug 30 00:03:42 2025 +0200

    Fix @jpountz review comment after merge
---
 lucene/core/src/java/org/apache/lucene/store/DataInput.java | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lucene/core/src/java/org/apache/lucene/store/DataInput.java b/lucene/core/src/java/org/apache/lucene/store/DataInput.java
index 1ec937c2594..c81fbe59346 100644
--- a/lucene/core/src/java/org/apache/lucene/store/DataInput.java
+++ b/lucene/core/src/java/org/apache/lucene/store/DataInput.java
@@ -27,6 +27,7 @@ import java.util.Set;
 import java.util.TreeMap;
 import java.util.TreeSet;
 import org.apache.lucene.util.BitUtil;
+import org.apache.lucene.util.GroupVIntUtil;
 
 /**
  * Abstract base class for performing read operations of Lucene's low-level data types.
@@ -104,14 +105,15 @@ public abstract class DataInput implements Cloneable {
    *
    * <p>If you have implemented this method, simply remove it!
    *
-   * @throws UnsupportedOperationException (always)
    * @lucene.experimental
-   * @deprecated This method is no longer called. It is only kept for backwards compatibility
+   * @deprecated This method is no longer called by Lucene. It is only kept for backwards
+   *     compatibility. Code calling this method should migrate to {@link
+   *     GroupVIntUtil#readGroupVInts(DataInput, int[], int)} to decode a full group including tails
+   *     instead.
    */
   @Deprecated
   public void readGroupVInt(int[] dst, int offset) throws IOException {
-    throw new UnsupportedOperationException(
-        "This method is no longer called by Lucene's code and custom code should also not call it.");
+    GroupVIntUtil.readGroupVInt(this, dst, offset);
   }
 
   /**