diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-26 15:26:12 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-26 15:53:53 +0100 |
commit | 9ec1c0b9585e2c845d47c396f72229aad23abac7 (patch) | |
tree | b45cf2fc11cdc7bfc34c77d96f9e73b187679015 /http-client | |
parent | 48b902d4852bc63db8ec835a9dfccc2b1f8f89ec (diff) |
Upgrade apache 5.1 => 5.2 and add deprecation suppressions.
Diffstat (limited to 'http-client')
-rw-r--r-- | http-client/src/main/java/ai/vespa/hosted/client/AbstractHttpClient.java | 2 | ||||
-rw-r--r-- | http-client/src/main/java/ai/vespa/hosted/client/HttpClient.java | 1 |
2 files changed, 3 insertions, 0 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 f0aaccb82fa..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 @@ -47,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); } @@ -113,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..1f36ae8f8a4 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 @@ -34,6 +34,7 @@ import static java.util.Objects.requireNonNull; /** * @author jonmv */ +@SuppressWarnings("deprecation") public interface HttpClient extends Closeable { RequestConfig defaultRequestConfig = RequestConfig.custom() |