summaryrefslogtreecommitdiffstats
path: root/http-client
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-01-04 07:59:31 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2023-01-25 10:48:38 +0100
commitdd05e4b94d67b481c241cfa20ccf0e481dcb0bd7 (patch)
treed48af28cb2c6651f6a7424d599dfeb1610b8c931 /http-client
parentdb01dd9ebc4f63acc71d4ef9b015db4133a5de6d (diff)
Bump apache httpclient from 5.1 to 5.2.
Diffstat (limited to 'http-client')
-rw-r--r--http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java3
-rw-r--r--http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java1
2 files changed, 3 insertions, 1 deletions
diff --git a/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java b/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java
index 48bbffc7e37..c62be40f1db 100644
--- a/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java
+++ b/http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java
@@ -36,7 +36,6 @@ import java.util.logging.Logger;
import static java.util.Objects.requireNonNull;
import static java.util.logging.Level.FINE;
-import static java.util.logging.Level.WARNING;
/**
* @author jonmv
@@ -48,6 +47,7 @@ public abstract class AbstractHttpClient implements HttpClient {
public static HttpClient wrapping(CloseableHttpClient client) {
return new AbstractHttpClient() {
@Override
+ @SuppressWarnings("deprecation")
protected ClassicHttpResponse execute(ClassicHttpRequest request, HttpClientContext context) throws IOException {
return client.execute(request, context);
}
@@ -114,6 +114,7 @@ public abstract class AbstractHttpClient implements HttpClient {
throw new IllegalStateException("No hosts to perform the request against");
}
+ @SuppressWarnings("deprecation")
private HttpClientContext contextWithTimeout(RequestBuilder builder) {
HttpClientContext context = HttpClientContext.create();
RequestConfig config = builder.config;
diff --git a/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java b/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java
index 10ef20980e6..fadffef2a87 100644
--- a/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java
+++ b/http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java
@@ -36,6 +36,7 @@ import static java.util.Objects.requireNonNull;
*/
public interface HttpClient extends Closeable {
+ @SuppressWarnings("deprecation")
RequestConfig defaultRequestConfig = RequestConfig.custom()
.setConnectionRequestTimeout(Timeout.ofSeconds(5))
.setConnectTimeout(Timeout.ofSeconds(5))