Skip to content

Commit ccf791b

Browse files
committed
Deprecate OkHttp 2.x support
Issue: SPR-14344
1 parent 81057a2 commit ccf791b

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

spring-web/src/main/java/org/springframework/http/client/OkHttpAsyncClientHttpRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
* @author Arjen Poutsma
4040
* @since 4.3
4141
* @see org.springframework.http.client.OkHttp3AsyncClientHttpRequest
42+
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
4243
*/
44+
@Deprecated
4345
class OkHttpAsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpRequest {
4446

4547
private final OkHttpClient client;
@@ -75,6 +77,7 @@ protected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders heade
7577
}
7678

7779

80+
@Deprecated
7881
private static class OkHttpListenableFuture extends SettableListenableFuture<ClientHttpResponse> {
7982

8083
private final Call call;

spring-web/src/main/java/org/springframework/http/client/OkHttpClientHttpRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
* @author Arjen Poutsma
3535
* @since 4.2
3636
* @see org.springframework.http.client.OkHttp3ClientHttpRequest
37+
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
3738
*/
39+
@Deprecated
3840
class OkHttpClientHttpRequest extends AbstractBufferingClientHttpRequest {
3941

4042
private final OkHttpClient client;

spring-web/src/main/java/org/springframework/http/client/OkHttpClientHttpRequestFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
* @author Arjen Poutsma
4343
* @since 4.2
4444
* @see org.springframework.http.client.OkHttp3ClientHttpRequestFactory
45+
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
4546
*/
47+
@Deprecated
4648
public class OkHttpClientHttpRequestFactory
4749
implements ClientHttpRequestFactory, AsyncClientHttpRequestFactory, DisposableBean {
4850

spring-web/src/main/java/org/springframework/http/client/OkHttpClientHttpResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
* @author Arjen Poutsma
3232
* @since 4.2
3333
* @see org.springframework.http.client.OkHttp3ClientHttpResponse
34+
* @deprecated as of Spring 5.0, in favor of OkHttp 3.x
3435
*/
36+
@Deprecated
3537
class OkHttpClientHttpResponse extends AbstractClientHttpResponse {
3638

3739
private final Response response;

0 commit comments

Comments
 (0)