Ensure RestClientResponseException is serializable

Closes gh-30224
This commit is contained in:
rstoyanchev 2023-04-12 15:38:27 +01:00
parent 5f2264816a
commit bd029b9218
2 changed files with 2 additions and 4 deletions

View File

@ -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;
/**

View File

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