Skip to content

Commit a2c5fed

Browse files
committed
Make targetType in UknownContentTypeException transient
Closes gh-31283
1 parent 957b6b2 commit a2c5fed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-web/src/main/java/org/springframework/web/client/UnknownContentTypeException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,8 +36,8 @@ public class UnknownContentTypeException extends RestClientException {
3636

3737
private static final long serialVersionUID = 2759516676367274084L;
3838

39-
@SuppressWarnings("serial")
40-
private final Type targetType;
39+
40+
private transient final Type targetType;
4141

4242
private final MediaType contentType;
4343

0 commit comments

Comments
 (0)