diff --git a/spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java b/spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java index ac9186a021e..2a6f0b5bfac 100644 --- a/spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java +++ b/spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java @@ -116,6 +116,7 @@ public class SettableListenableFuture implements ListenableFuture { * {@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 implements ListenableFuture { * @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);