Ensure RestClientResponseException is serializable
Closes gh-30224
This commit is contained in:
parent
5f2264816a
commit
bd029b9218
|
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -54,8 +54,7 @@ public class RestClientResponseException extends RestClientException {
|
||||||
private final String responseCharset;
|
private final String responseCharset;
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@SuppressWarnings("serial")
|
private transient Function<ResolvableType, ?> bodyConvertFunction;
|
||||||
private Function<ResolvableType, ?> bodyConvertFunction;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ public class WebClientResponseException extends WebClientException {
|
||||||
@Nullable
|
@Nullable
|
||||||
private transient final HttpRequest request;
|
private transient final HttpRequest request;
|
||||||
|
|
||||||
@SuppressWarnings("MutableException")
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private transient Function<ResolvableType, ?> bodyDecodeFunction;
|
private transient Function<ResolvableType, ?> bodyDecodeFunction;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue