Skip to content

Commit

Permalink
Applying code suggestions (#4973)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-at-moderne authored Jan 30, 2025
1 parent 63c9526 commit 9869097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
});
Expand Down

0 comments on commit 9869097

Please sign in to comment.