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");
|
||||
* 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;
|
||||
|
||||
@Nullable
|
||||
@SuppressWarnings("serial")
|
||||
private Function<ResolvableType, ?> bodyConvertFunction;
|
||||
private transient Function<ResolvableType, ?> bodyConvertFunction;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -58,7 +58,6 @@ public class WebClientResponseException extends WebClientException {
|
|||
@Nullable
|
||||
private transient final HttpRequest request;
|
||||
|
||||
@SuppressWarnings("MutableException")
|
||||
@Nullable
|
||||
private transient Function<ResolvableType, ?> bodyDecodeFunction;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue