Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
TAKETODAY committed Jan 1, 2025
1 parent 5c4bf6a commit 5beb417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions today-web/src/main/java/infra/web/client/ClientResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public interface ClientResponse extends ClientHttpResponse {
* @return the body, or {@code null} if no response body was available
*/
@Nullable
<T> T bodyTo(Class<T> bodyType);
<T> T bodyTo(Class<T> bodyType) throws RestClientException;

/**
* Extract the response body as an object of the given type.
Expand All @@ -51,5 +51,5 @@ public interface ClientResponse extends ClientHttpResponse {
* @return the body, or {@code null} if no response body was available
*/
@Nullable
<T> T bodyTo(ParameterizedTypeReference<T> bodyType);
<T> T bodyTo(ParameterizedTypeReference<T> bodyType) throws RestClientException;
}

0 comments on commit 5beb417

Please sign in to comment.