Skip to content

Commit 5ba7b89

Browse files
committed
StandardMultipartFile declares itself as Serializable now
Issue: SPR-12795
1 parent 6fe85c2 commit 5ba7b89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-web/src/main/java/org/springframework/web/multipart/support/StandardMultipartHttpServletRequest.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 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.
@@ -19,6 +19,7 @@
1919
import java.io.File;
2020
import java.io.IOException;
2121
import java.io.InputStream;
22+
import java.io.Serializable;
2223
import java.util.ArrayList;
2324
import java.util.Collection;
2425
import java.util.Collections;
@@ -207,7 +208,8 @@ public HttpHeaders getMultipartHeaders(String paramOrFileName) {
207208
/**
208209
* Spring MultipartFile adapter, wrapping a Servlet 3.0 Part object.
209210
*/
210-
private static class StandardMultipartFile implements MultipartFile {
211+
@SuppressWarnings("serial")
212+
private static class StandardMultipartFile implements MultipartFile, Serializable {
211213

212214
private final Part part;
213215

0 commit comments

Comments
 (0)