Skip to content

Commit

Permalink
Updating the set of error codes to just be a Set
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Sweeney committed Sep 7, 2023
1 parent 2409b12 commit 202769e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
Expand Down Expand Up @@ -93,8 +92,8 @@ public class SearchHandler extends RequestHandlerBase

protected static final String SHARD_HANDLER_SUFFIX = "[shard]";

private static final Collection<SolrException.ErrorCode> NONTOLERANT_ERROR_CODES =
List.of(SolrException.ErrorCode.BAD_REQUEST);
private static final Set<SolrException.ErrorCode> NONTOLERANT_ERROR_CODES =
Set.of(SolrException.ErrorCode.BAD_REQUEST);

private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

Expand Down

0 comments on commit 202769e

Please sign in to comment.