Skip to content

Commit e14c33b

Browse files
committed
Remove unused field
1 parent b7ba58c commit e14c33b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/org/openrewrite/java/testing/junit5/UpdateMockWebServerMockResponse.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public class UpdateMockWebServerMockResponse extends Recipe {
4949
private static final String OLD_PACKAGE_NAME = "okhttp3.mockwebserver";
5050
private static final String NEW_PACKAGE_NAME = "mockwebserver3";
5151
private static final String OLD_MOCKRESPONSE_FQN = OLD_PACKAGE_NAME + ".MockResponse";
52-
private static final String OLD_MOCKRESPONSE_CONSTRUCTOR = OLD_MOCKRESPONSE_FQN + " <constructor>()";
5352
private static final String NEW_MOCKRESPONSE_FQN = NEW_PACKAGE_NAME + ".MockResponse";
5453
private static final String NEW_MOCKRESPONSE_FQN_BUILDER = NEW_MOCKRESPONSE_FQN + "$Builder";
5554

@@ -117,8 +116,6 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
117116
public @Nullable J visit(@Nullable Tree tree, ExecutionContext ctx) {
118117
J j = (J) tree;
119118
j = new JavaIsoVisitor<ExecutionContext>() {
120-
private final MethodMatcher constructorMatcher = new MethodMatcher(OLD_MOCKRESPONSE_CONSTRUCTOR);
121-
122119
@Override
123120
public J.MethodInvocation visitMethodInvocation(J.MethodInvocation methodInv, ExecutionContext ctx) {
124121
J.MethodInvocation mi = super.visitMethodInvocation(methodInv, ctx);

0 commit comments

Comments
 (0)