Deprecate OkHttp3ClientHttpRequestFactory

Closes gh-30919
This commit is contained in:
Arjen Poutsma
2023-07-20 13:48:52 +02:00
parent 3d57425dcb
commit efb6abc43f
8 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@ import org.springframework.http.HttpMethod;
*/
public class OkHttp3ClientHttpRequestFactoryTests extends AbstractHttpRequestFactoryTests {
@SuppressWarnings("removal")
@Override
protected ClientHttpRequestFactory createRequestFactory() {
return new OkHttp3ClientHttpRequestFactory();

View File

@@ -72,6 +72,7 @@ class RestClientIntegrationTests {
@interface ParameterizedRestClientTest {
}
@SuppressWarnings("removal")
static Stream<Named<ClientHttpRequestFactory>> clientHttpRequestFactories() {
return Stream.of(
named("JDK HttpURLConnection", new SimpleClientHttpRequestFactory()),

View File

@@ -91,6 +91,7 @@ class RestTemplateIntegrationTests extends AbstractMockWebServerTests {
@interface ParameterizedRestTemplateTest {
}
@SuppressWarnings("removal")
static Stream<Named<ClientHttpRequestFactory>> clientHttpRequestFactories() {
return Stream.of(
named("JDK HttpURLConnection", new SimpleClientHttpRequestFactory()),