Skip to content

Commit 20709e9

Browse files
committed
Update MockUtilsToStatic MockUtil constructor method matcher.
1 parent d670dee commit 20709e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/testing/mockito/MockUtilsToStatic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected TreeVisitor<?, ExecutionContext> getSingleSourceApplicableTest() {
6161
}
6262

6363
public static class MockUtilsToStaticVisitor extends JavaVisitor<ExecutionContext> {
64-
private static final MethodMatcher METHOD_MATCHER = new MethodMatcher("org.mockito.internal.util.MockUtil MockUtil()");
64+
private static final MethodMatcher METHOD_MATCHER = new MethodMatcher("org.mockito.internal.util.MockUtil <constructor>()");
6565
private final ChangeMethodTargetToStatic changeMethodTargetToStatic = new ChangeMethodTargetToStatic(
6666
"org.mockito.internal.util.MockUtil *(..)",
6767
"org.mockito.internal.util.MockUtil",

0 commit comments

Comments
 (0)