Polishing

This commit is contained in:
Juergen Hoeller
2019-05-21 00:15:40 +02:00
parent 75d751d968
commit 8cd3daad0d
2 changed files with 7 additions and 6 deletions

View File

@@ -100,9 +100,9 @@ public class DeferredResult<T> {
* @param timeoutValue timeout value in milliseconds (ignored if {@code null})
* @param timeoutResult the result to use
*/
public DeferredResult(@Nullable Long timeoutValue, final Object timeoutResult) {
this.timeoutResult = () -> timeoutResult;
public DeferredResult(@Nullable Long timeoutValue, Object timeoutResult) {
this.timeoutValue = timeoutValue;
this.timeoutResult = () -> timeoutResult;
}
/**
@@ -113,8 +113,8 @@ public class DeferredResult<T> {
* @since 5.1.1
*/
public DeferredResult(@Nullable Long timeoutValue, Supplier<?> timeoutResult) {
this.timeoutResult = timeoutResult;
this.timeoutValue = timeoutValue;
this.timeoutResult = timeoutResult;
}