Remove unnecessary check in RequestMappingHandlerAdapter

This commit is contained in:
Arjen Poutsma 2020-11-23 13:32:52 +01:00
parent 642d47ef8d
commit 7c47f554c0
1 changed files with 1 additions and 4 deletions

View File

@ -880,10 +880,7 @@ public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter
asyncManager.registerCallableInterceptors(this.callableInterceptors);
asyncManager.registerDeferredResultInterceptors(this.deferredResultInterceptors);
if (asyncManager.hasConcurrentResult() &&
asyncManager.getConcurrentResultContext().length > 0 &&
asyncManager.getConcurrentResultContext()[0] instanceof ModelAndViewContainer) {
if (asyncManager.hasConcurrentResult()) {
Object result = asyncManager.getConcurrentResult();
mavContainer = (ModelAndViewContainer) asyncManager.getConcurrentResultContext()[0];
asyncManager.clearConcurrentResult();