Skip to content

Commit

Permalink
Fixing compile errors for new Boot and Spring Framework versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjbaxter committed Aug 7, 2024
1 parent eab1283 commit f0dbdc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ public URI getURI() {
return URI.create(request.url());
}

@Override
public Map<String, Object> getAttributes() {
Map<String, Object> attributes = new HashMap<>(request.requestTemplate().queries());
return attributes;
}

@Override
public HttpHeaders getHeaders() {
Map<String, List<String>> headers = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ public HttpStatusCode getStatusCode() {
return HttpStatusCode.valueOf(response.status());
}

@Override
@Deprecated
/**
* This method used to override a method from ClientHttpResponse interface but was
* removed in Spring Framework 6.2 so we should remove it as well.
*/
public int getRawStatusCode() {
return response.status();
}
Expand Down

0 comments on commit f0dbdc9

Please sign in to comment.