Skip to content

Commit 4e55073

Browse files
committed
Reuse method matcher
1 parent d54bc22 commit 4e55073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/migrate/guava/NoGuavaSetsFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public Set<String> getTags() {
5050
@Override
5151
public TreeVisitor<?, ExecutionContext> getVisitor() {
5252
return Preconditions.check(
53-
new UsesMethod<>("com.google.common.collect.Sets filter(java.util.Set, com.google.common.base.Predicate)"),
53+
new UsesMethod<>(SETS_FILTER),
5454
new JavaIsoVisitor<ExecutionContext>() {
5555
@Override
5656
public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx) {

0 commit comments

Comments
 (0)