From 5f020d1ee71229213cb7ad92d1e94bb91c0d3d4c Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Fri, 30 Jun 2017 09:59:32 +0300 Subject: [PATCH] Polish - the flag continueProcessing is not needed --- .../web/context/request/async/DeferredResult.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResult.java b/spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResult.java index 5d23f281be..71b100304a 100644 --- a/spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResult.java +++ b/spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResult.java @@ -292,14 +292,12 @@ public class DeferredResult { } @Override public boolean handleError(NativeWebRequest request, DeferredResult deferredResult, Throwable t) { - boolean continueProcessing = true; try { if (errorCallback != null) { errorCallback.accept(t); } } finally { - continueProcessing = false; try { setResultInternal(t); } @@ -307,7 +305,7 @@ public class DeferredResult { logger.debug("Failed to handle error result", ex); } } - return continueProcessing; + return false; } @Override public void afterCompletion(NativeWebRequest request, DeferredResult deferredResult) {