mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
Suggestions
This commit is contained in:
committed by
Gijs de Jong
parent
2ad2722b02
commit
7c0b3af53b
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user