Skip to content

Commit 5c09435

Browse files
committed
Fix warnings
See gh-34409
1 parent 7271358 commit 5c09435

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

spring-web/src/main/java/org/springframework/http/ProblemDetail.java

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public class ProblemDetail implements Serializable {
6868

6969
private @Nullable URI instance;
7070

71+
@SuppressWarnings("serial")
7172
private @Nullable Map<String, Object> properties;
7273

7374

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java

+2
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ public String doWork() {
220220

221221
private static class MyProblemDetail extends ProblemDetail {
222222

223+
private static final long serialVersionUID = -3036911788793188054L;
224+
223225
public MyProblemDetail(HttpStatus status) {
224226
super(status.value());
225227
}

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java

+2
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,8 @@ SimpleBean getSimpleBean() {
841841

842842
private static class MyProblemDetail extends ProblemDetail {
843843

844+
private static final long serialVersionUID = 848059476504348430L;
845+
844846
public MyProblemDetail(HttpStatus status) {
845847
super(status.value());
846848
}

0 commit comments

Comments
 (0)