Browse Source

Merge branch '5.3.x'

pull/29154/head
Sam Brannen 3 years ago
parent
commit
354117da7f
  1. 2
      spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java

2
spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java

@ -116,6 +116,7 @@ public class SettableListenableFuture<T> implements ListenableFuture<T> { @@ -116,6 +116,7 @@ public class SettableListenableFuture<T> implements ListenableFuture<T> {
* {@link java.util.concurrent.CancellationException} if the future has been cancelled.
* @return the value associated with this future
*/
@Nullable
@Override
public T get() throws InterruptedException, ExecutionException {
return this.settableTask.get();
@ -131,6 +132,7 @@ public class SettableListenableFuture<T> implements ListenableFuture<T> { @@ -131,6 +132,7 @@ public class SettableListenableFuture<T> implements ListenableFuture<T> {
* @param unit the unit of the timeout argument
* @return the value associated with this future
*/
@Nullable
@Override
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
return this.settableTask.get(timeout, unit);

Loading…
Cancel
Save