From a2c5fed4941ec58503395f32946d3331d59917b5 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Thu, 28 Sep 2023 16:52:03 +0100 Subject: [PATCH] Make targetType in UknownContentTypeException transient Closes gh-31283 --- .../web/client/UnknownContentTypeException.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/UnknownContentTypeException.java b/spring-web/src/main/java/org/springframework/web/client/UnknownContentTypeException.java index cfbd27d68bd6..a6724f9f851d 100644 --- a/spring-web/src/main/java/org/springframework/web/client/UnknownContentTypeException.java +++ b/spring-web/src/main/java/org/springframework/web/client/UnknownContentTypeException.java @@ -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;