This is an automated email from the ASF dual-hosted git repository.
anshumg pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_10x by this push:
new f2e8c54c5f6 SOLR-18098: Fix precommit (#4498)
f2e8c54c5f6 is described below
commit f2e8c54c5f6fca2c82612d89bc18040fc02c3983
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 d30cab80659..e9d639f1ab3 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) -> {