Skip to content

Commit 4db48cf

Browse files
committed
fix constructor method matcher
1 parent 5c5c1f8 commit 4db48cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toxic-library-remover/src/main/java/com/github/jtama/openrewrite/RemoveTryCatchConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class RemoveTryCatchConnectionVisitor extends JavaVisitor<ExecutionContex
3434
public static final String PATH_PARAM = "pathParam";
3535
public static final String IS_EMPTY_PARAM = "isEmptyParam";
3636
private final MethodMatcher isEmptyInvocaMatcher = new MethodMatcher("com.github.jtama.toxic.FooBarUtils isEmpty(java.lang.String)");
37-
private final MethodMatcher newFileMatcher = new MethodMatcher("java.io.File<constructor>(..)");
37+
private final MethodMatcher newFileMatcher = new MethodMatcher("java.io.File <constructor>(..)");
3838
private final JavaTemplate template = JavaTemplate.builder("Path.of(#{any()})")
3939
.imports("java.nio.file.Path").build();
4040

0 commit comments

Comments
 (0)