risdenk commented on code in PR #1466: URL: https://github.com/apache/solr/pull/1466#discussion_r1144820135
########## solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java: ########## @@ -1558,7 +1556,7 @@ Solution is q(k) = 1/2 (k^2+k+2) public Builder<E, M> addSubset(Collection<E> subset, M matchValue) { if (!subset.isEmpty()) { TrieSubsetMatcher.Node<E, M> node = root; - for (E e : ImmutableSortedSet.copyOf(subset)) { + for (E e : Collections.unmodifiableSortedSet(new TreeSet<>(subset))) { Review Comment: Fixed in f75201354ee64df0fc739e6f128ebe0739e8b884 ########## solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java: ########## @@ -1590,10 +1587,10 @@ public int getSubsetCount() { * Returns an iterator over all the subsets that are contained by the provided set. The returned * iterator does not support removal. * - * @param set This set is copied to a new {@link ImmutableSortedSet} with natural ordering. + * @param set This set is copied to a new {@link SortedSet} with natural ordering. */ public Iterator<M> findSubsetsMatching(Collection<E> set) { - return new MatchIterator(ImmutableSortedSet.copyOf(set)); + return new MatchIterator(Collections.unmodifiableSortedSet(new TreeSet<>(set))); Review Comment: Fixed in f75201354ee64df0fc739e6f128ebe0739e8b884 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org