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

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

commit f76f061c0a9e76a52be6bc9301c9a2f059e092c5
Author: Anshum Gupta <[email protected]>
AuthorDate: Thu Jun 4 13:57:39 2026 -0700

    SOLR-18098: Fix precommit (#4498)
---
 .../org/apache/solr/handler/IndexFetcherPacketProtocolTest.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/solr/core/src/test/org/apache/solr/handler/IndexFetcherPacketProtocolTest.java
 
b/solr/core/src/test/org/apache/solr/handler/IndexFetcherPacketProtocolTest.java
index 050994e98d1..6307c067bd9 100644
--- 
a/solr/core/src/test/org/apache/solr/handler/IndexFetcherPacketProtocolTest.java
+++ 
b/solr/core/src/test/org/apache/solr/handler/IndexFetcherPacketProtocolTest.java
@@ -18,10 +18,12 @@ package org.apache.solr.handler;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
+import java.io.OutputStream;
 import java.lang.invoke.MethodHandle;
 import java.lang.invoke.MethodHandles;
 import java.lang.invoke.MethodType;
 import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
 import java.util.HashMap;
 import java.util.Map;
 import org.apache.lucene.store.Directory;
@@ -275,7 +277,7 @@ public class IndexFetcherPacketProtocolTest extends 
SolrTestCaseJ4 {
       }
 
       ByteArrayOutputStream baos = new ByteArrayOutputStream();
-      Method writeMethod = stream.getClass().getMethod("write", 
java.io.OutputStream.class);
+      Method writeMethod = stream.getClass().getMethod("write", 
OutputStream.class);
       writeMethod.invoke(stream, baos);
       return baos.toByteArray();
     } finally {
@@ -377,7 +379,7 @@ public class IndexFetcherPacketProtocolTest extends 
SolrTestCaseJ4 {
   private Object createMockFileInterface(ByteArrayOutputStream output) throws 
Exception {
     Class<?> fileInterfaceClass = getFileInterfaceClass();
 
-    return java.lang.reflect.Proxy.newProxyInstance(
+    return Proxy.newProxyInstance(
         fileInterfaceClass.getClassLoader(),
         new Class<?>[] {fileInterfaceClass},
         (proxy, method, args) -> {

Reply via email to