Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdyer1 committed Dec 13, 2024
1 parent 8f17279 commit effedb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,10 @@ private Optional<String> getUserFromJettyRequest(Request request) {
(String) request.getAttributes().get(CACHED_REQUEST_USER_KEY));
}
};
if(client != null) {
if (client != null) {
client.addListenerFactory(() -> listener);
}
if(builder != null) {
if (builder != null) {
builder.withListenerFactory(List.of(() -> listener));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@

import java.io.IOException;

/** A lambda intended for invoking SolrClient operations
/**
* A lambda intended for invoking SolrClient operations
*
* @lucene.experimental
* */
*/
@FunctionalInterface
public interface SolrClientFunction<C extends SolrClient, R> {
R apply(C c) throws IOException, SolrServerException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ public final <R extends SolrResponse> R requestWithBaseUrl(
* @param clientFunction a Function that consumes a Http2SolrClient and returns an arbitrary value
* @return the value returned after invoking 'clientFunction'
* @param <R> the type returned by the provided function (and by this method)
*
* @lucene.experimental
*/
public <R> R requestWithBaseUrl(
Expand Down

0 comments on commit effedb9

Please sign in to comment.