Skip to content

Commit f0dbdc9

Browse files
committed
Fixing compile errors for new Boot and Spring Framework versions
1 parent eab1283 commit f0dbdc9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/loadbalancer/RetryableFeignBlockingLoadBalancerClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ public URI getURI() {
257257
return URI.create(request.url());
258258
}
259259

260+
@Override
261+
public Map<String, Object> getAttributes() {
262+
Map<String, Object> attributes = new HashMap<>(request.requestTemplate().queries());
263+
return attributes;
264+
}
265+
260266
@Override
261267
public HttpHeaders getHeaders() {
262268
Map<String, List<String>> headers = new HashMap<>();

spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/support/SpringDecoder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ public HttpStatusCode getStatusCode() {
8787
return HttpStatusCode.valueOf(response.status());
8888
}
8989

90-
@Override
90+
@Deprecated
91+
/**
92+
* This method used to override a method from ClientHttpResponse interface but was
93+
* removed in Spring Framework 6.2 so we should remove it as well.
94+
*/
9195
public int getRawStatusCode() {
9296
return response.status();
9397
}

0 commit comments

Comments
 (0)