Skip to content

Commit 474862a

Browse files
committed
StandardMultipartFile declares itself as Serializable now
Issue: SPR-12795 (cherry picked from commit 5ba7b89)
1 parent 0920266 commit 474862a

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

Lines changed: 4 additions & 2 deletions
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;
@@ -206,7 +207,8 @@ public HttpHeaders getMultipartHeaders(String paramOrFileName) {
206207
/**
207208
* Spring MultipartFile adapter, wrapping a Servlet 3.0 Part object.
208209
*/
209-
private static class StandardMultipartFile implements MultipartFile {
210+
@SuppressWarnings("serial")
211+
private static class StandardMultipartFile implements MultipartFile, Serializable {
210212

211213
private final Part part;
212214

0 commit comments

Comments
 (0)