SPR-6464 Fix minor issue
This commit is contained in:
@@ -62,7 +62,7 @@ import org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMeth
|
||||
* @see #handleTypeMismatch
|
||||
* @see #handleHttpMessageNotReadable
|
||||
* @see #handleHttpMessageNotWritable
|
||||
* @see #handleRequestBodyNotValidException
|
||||
* @see #handleMethodArgumentNotValidException
|
||||
*/
|
||||
public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionResolver {
|
||||
|
||||
|
||||
@@ -121,7 +121,9 @@ public class DefaultFlashMapManager implements FlashMapManager {
|
||||
|
||||
if (!matches.isEmpty()) {
|
||||
Collections.sort(matches);
|
||||
return matches.remove(0);
|
||||
FlashMap match = matches.remove(0);
|
||||
allMaps.remove(match);
|
||||
return match;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user