Skip to content


Improved: Use ‘forEach’ in ‘RequestHandler’ for conciseness
Browse files Browse the repository at this point in the history
No functional changes.
  • Loading branch information
mthl committed Jan 3, 2020
1 parent f9607c0 commit 20e0bbe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,7 @@ public void doRequest(HttpServletRequest request, HttpServletResponse response,
// we know this is the case if the _PREVIOUS_PARAM_MAP_ attribute is there, but the _PREVIOUS_REQUEST_ attribute has already been removed
if (request.getSession().getAttribute("_PREVIOUS_PARAM_MAP_FORM_") != null && request.getSession().getAttribute("_PREVIOUS_REQUEST_") == null) {
Map<String, Object> previousParamMap = UtilGenerics.checkMap(request.getSession().getAttribute("_PREVIOUS_PARAM_MAP_FORM_"), String.class, Object.class);
for (Map.Entry<String, Object> previousParamEntry: previousParamMap.entrySet()) {
request.setAttribute(previousParamEntry.getKey(), previousParamEntry.getValue());

// to avoid this data being included again, now remove the _PREVIOUS_PARAM_MAP_ attribute
Expand Down

0 comments on commit 20e0bbe

Please sign in to comment.