Suggestions

This commit is contained in:
Stephan Schroevers
2022-10-08 19:20:04 +02:00
committed by Gijs de Jong
parent 2ad2722b02
commit 7c0b3af53b
2 changed files with 2 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ import java.util.function.Function;
@AutoValue
abstract class Node<T> {
static <T> Node<T> create(
ImmutableCollection<T> values,
ImmutableList<T> values,
Function<? super T, ? extends Set<? extends Set<String>>> pathExtractor) {
BuildNode<T> tree = BuildNode.create();
tree.register(values, pathExtractor);

View File

@@ -4,7 +4,6 @@ import static com.google.common.collect.ImmutableSet.toImmutableSet;
import static java.util.Collections.newSetFromMap;
import static java.util.stream.Collectors.toCollection;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.refaster.BlockTemplate;
@@ -91,7 +90,7 @@ final class RefasterRuleSelector {
}
/** Instantiates a new {@link RefasterRuleSelector} backed by the given {@link RefasterRule}s. */
static RefasterRuleSelector create(ImmutableCollection<RefasterRule<?, ?>> refasterRules) {
static RefasterRuleSelector create(ImmutableList<RefasterRule<?, ?>> refasterRules) {
return new RefasterRuleSelector(
Node.create(refasterRules, RefasterRuleSelector::extractTemplateIdentifiers));
}