Browse Source

Ensure RestClientResponseException is serializable

Closes gh-30224
pull/30338/head
rstoyanchev 3 years ago
parent
commit
bd029b9218
  1. 5
      spring-web/src/main/java/org/springframework/web/client/RestClientResponseException.java
  2. 1
      spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientResponseException.java

5
spring-web/src/main/java/org/springframework/web/client/RestClientResponseException.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 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.
@ -54,8 +54,7 @@ public class RestClientResponseException extends RestClientException { @@ -54,8 +54,7 @@ public class RestClientResponseException extends RestClientException {
private final String responseCharset;
@Nullable
@SuppressWarnings("serial")
private Function<ResolvableType, ?> bodyConvertFunction;
private transient Function<ResolvableType, ?> bodyConvertFunction;
/**

1
spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClientResponseException.java

@ -58,7 +58,6 @@ public class WebClientResponseException extends WebClientException { @@ -58,7 +58,6 @@ public class WebClientResponseException extends WebClientException {
@Nullable
private transient final HttpRequest request;
@SuppressWarnings("MutableException")
@Nullable
private transient Function<ResolvableType, ?> bodyDecodeFunction;

Loading…
Cancel
Save