Skip to content

Commit

Permalink
去除jdk17不支持的java函数
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Oct 15, 2024
1 parent ced2fcf commit 771b95d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public CompletionStage<IHttpResponse> fetchAsync(HttpRequest request, ICancelTok
}

return httpClient.fetchAsync(request, cancelTokens).whenComplete((response, ex) -> {
for (IHttpClientInterceptor interceptor : interceptors.reversed()) {
for (int i = 0, n = interceptors.size(); i < n; i++) {
IHttpClientInterceptor interceptor = interceptors.get(n - i - 1);
interceptor.onEndFetch(this, request, ex, response);
}
});
Expand Down

0 comments on commit 771b95d

Please sign in to comment.