Polishing
This commit is contained in:
@@ -147,7 +147,7 @@ class DefaultMvcResult implements MvcResult {
|
||||
" was not set during the specified timeToWait=" + timeToWait);
|
||||
}
|
||||
Object result = this.asyncResult.get();
|
||||
Assert.state(result != RESULT_NONE, "Async result for handler [" + this.handler + "] was not set");
|
||||
Assert.state(result != RESULT_NONE, () -> "Async result for handler [" + this.handler + "] was not set");
|
||||
return this.asyncResult.get();
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ class DefaultMvcResult implements MvcResult {
|
||||
try {
|
||||
return this.asyncDispatchLatch.await(timeout, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
catch (InterruptedException ex) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user