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

janhoy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 37312f33295 SOLR-18362: fix SpellCheckCollatorTest compile error from 
the removal of Token (#4903)
37312f33295 is described below

commit 37312f332953144dd54b635127d7335ee9d79e59
Author: Serhiy Bzhezytskyy <[email protected]>
AuthorDate: Fri Sep 11 11:28:13 2026 +0300

    SOLR-18362: fix SpellCheckCollatorTest compile error from the removal of 
Token (#4903)
---
 .../test/org/apache/solr/spelling/SpellCheckCollatorTest.java    | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git 
a/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java 
b/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
index 61ad93c1c30..7a3f1abc34b 100644
--- a/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
+++ b/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
@@ -759,23 +759,18 @@ public class SpellCheckCollatorTest extends 
SolrTestCaseJ4 {
   }
 
   @Test
-  @SuppressWarnings("deprecation")
   public void testCollationWithQueryLimitsSupportsPartialResults() throws 
Exception {
     // Create a SpellingResult with multiple suggestions to test collation
     SpellingResult result = new SpellingResult();
 
     // Add tokens with multiple suggestions to generate many possible 
collations
-    Token token1 = new Token();
-    token1.copyBuffer("test".toCharArray(), 0, 4);
-    token1.setOffset(0, 4);
+    SpellCheckToken token1 = new SpellCheckToken("test", 0, 4);
     result.add(token1, "best", 1);
     result.add(token1, "rest", 2);
     result.add(token1, "nest", 3);
     result.add(token1, "fest", 4);
 
-    Token token2 = new Token();
-    token2.copyBuffer("query".toCharArray(), 0, 5);
-    token2.setOffset(5, 10);
+    SpellCheckToken token2 = new SpellCheckToken("query", 5, 10);
     result.add(token2, "quarry", 1);
     result.add(token2, "quiry", 2);
     result.add(token2, "quary", 3);

Reply via email to