Skip to content

Commit

Permalink
Ensure RestClientResponseException is serializable
Browse files Browse the repository at this point in the history
Closes gh-30224
  • Loading branch information
rstoyanchev committed Apr 12, 2023
1 parent 5f22648 commit bd029b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public class WebClientResponseException extends WebClientException {
@Nullable
private transient final HttpRequest request;

@SuppressWarnings("MutableException")
@Nullable
private transient Function<ResolvableType, ?> bodyDecodeFunction;

Expand Down

0 comments on commit bd029b9

Please sign in to comment.