diff --git a/rewrite-gradle/src/main/java/org/openrewrite/gradle/RemoveRedundantDependencyVersions.java b/rewrite-gradle/src/main/java/org/openrewrite/gradle/RemoveRedundantDependencyVersions.java index aa7f16b48b3..0c257fac3b9 100644 --- a/rewrite-gradle/src/main/java/org/openrewrite/gradle/RemoveRedundantDependencyVersions.java +++ b/rewrite-gradle/src/main/java/org/openrewrite/gradle/RemoveRedundantDependencyVersions.java @@ -237,8 +237,8 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu } @Override - public J.Return visitReturn(J.Return _return, ExecutionContext executionContext) { - J.Return r = super.visitReturn(_return, executionContext); + public J.Return visitReturn(J.Return _return, ExecutionContext ctx) { + J.Return r = super.visitReturn(_return, ctx); if (r.getExpression() == null) { //noinspection DataFlowIssue return null; diff --git a/rewrite-maven/src/test/java/org/openrewrite/maven/internal/MavenPomDownloaderTest.java b/rewrite-maven/src/test/java/org/openrewrite/maven/internal/MavenPomDownloaderTest.java index 8b65ba89fc2..cb54ddd3291 100755 --- a/rewrite-maven/src/test/java/org/openrewrite/maven/internal/MavenPomDownloaderTest.java +++ b/rewrite-maven/src/test/java/org/openrewrite/maven/internal/MavenPomDownloaderTest.java @@ -1275,8 +1275,9 @@ void pomNotFoundWithJarFoundShouldNotThrow() throws Exception { @Override public MockResponse dispatch(RecordedRequest recordedRequest) { assert recordedRequest.getPath() != null; - if (recordedRequest.getPath().endsWith("fred/fred/1/fred-1.pom")) + if (recordedRequest.getPath().endsWith("fred/fred/1/fred-1.pom")) { return new MockResponse().setResponseCode(404).setBody(""); + } return new MockResponse().setResponseCode(200).setBody("some bytes so the jar isn't empty"); } });