Make targetType in UknownContentTypeException transient

Closes gh-31283
This commit is contained in:
rstoyanchev
2023-09-28 16:52:03 +01:00
parent 957b6b2caf
commit a2c5fed494

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.
@@ -36,8 +36,8 @@ public class UnknownContentTypeException extends RestClientException {
private static final long serialVersionUID = 2759516676367274084L;
@SuppressWarnings("serial")
private final Type targetType;
private transient final Type targetType;
private final MediaType contentType;