SPR-17074 pass argument of addAll/putAll into constructor

This commit is contained in:
stsypanov
2018-07-26 23:08:14 +03:00
committed by Juergen Hoeller
parent aa656c47b8
commit 457d586859
3 changed files with 3 additions and 6 deletions

View File

@@ -159,8 +159,7 @@ public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpSe
// Servlet 3.0 getParameterMap() not guaranteed to include multipart form items
// (e.g. on WebLogic 12) -> need to merge them here to be on the safe side
Map<String, String[]> paramMap = new LinkedHashMap<>();
paramMap.putAll(super.getParameterMap());
Map<String, String[]> paramMap = new LinkedHashMap<>(super.getParameterMap());
for (String paramName : this.multipartParameterNames) {
if (!paramMap.containsKey(paramName)) {
paramMap.put(paramName, getParameterValues(paramName));