diff --git a/solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java b/solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java index c209940dbbd..347607ea9f9 100644 --- a/solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java +++ b/solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java @@ -16,7 +16,6 @@ */ package org.apache.solr.core; -import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.solr.client.solrj.impl.Http2SolrClient; import org.apache.solr.common.util.IOUtils; @@ -45,8 +44,7 @@ final class HttpSolrClientProvider implements AutoCloseable { trackHttpSolrMetrics = new InstrumentedHttpListenerFactory(getNameStrategy(cfg)); initializeMetrics(parentContext); - this.httpClientBuilder = - new Http2SolrClient.Builder().addListenerFactory(trackHttpSolrMetrics); + this.httpClientBuilder = new Http2SolrClient.Builder().addListenerFactory(trackHttpSolrMetrics); if (cfg != null) { httpClientBuilder diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java index bcfb4aa0ff8..e93af72c26e 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java @@ -948,7 +948,8 @@ public Http2SolrClient.Builder addListenerFactory(HttpListenerFactory listenerFa * @param listenerFactories a list of HttpListenerFactory instances * @return This Builder */ - public Http2SolrClient.Builder withListenerFactories(List listenerFactories) { + public Http2SolrClient.Builder withListenerFactories( + List listenerFactories) { this.listenerFactories.clear(); this.listenerFactories.addAll(listenerFactories); return this;