Skip to content

Commit

Permalink
Use existing method
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed Nov 17, 2023
1 parent 4285e11 commit 9c4fe35
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ public <T> T getRequestBody() {
}

@Override
@SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"})
public <T> Optional<T> getOptionalRequestBody() throws JsonProcessingException {
return Optional.ofNullable((T) requestBody);
return Optional.ofNullable(getRequestBody());
}

@Override
Expand Down

0 comments on commit 9c4fe35

Please sign in to comment.