Skip to content

Commit c1ff97e

Browse files
igor-suhorukovjhoeller
authored andcommitted
Short-circuit logic should be used in boolean contexts
1 parent dd96c87 commit c1ff97e

File tree

1 file changed

+1
-1
lines changed
  • spring-test/src/main/java/org/springframework/test/web/servlet

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/web/servlet/MockMvc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public ResultActions perform(RequestBuilder requestBuilder) throws Exception {
164164
filterChain.doFilter(request, servletResponse);
165165

166166
if (DispatcherType.ASYNC.equals(request.getDispatcherType()) &&
167-
asyncContext != null & !request.isAsyncStarted()) {
167+
asyncContext != null && !request.isAsyncStarted()) {
168168
asyncContext.complete();
169169
}
170170

0 commit comments

Comments
 (0)