Polishing

This commit is contained in:
Juergen Hoeller
2014-06-26 16:01:24 +02:00
parent 35067790f3
commit 98d6f7b443
7 changed files with 30 additions and 29 deletions

View File

@@ -47,6 +47,7 @@ public class SettableListenableFuture<T> implements ListenableFuture<T> {
this.listenableFuture = new ListenableFutureTask<T>(this.settableTask);
}
/**
* Set the value of this future. This method will return {@code true} if
* the value was set successfully, or {@code false} if the future has already
@@ -135,7 +136,6 @@ public class SettableListenableFuture<T> implements ListenableFuture<T> {
* Subclasses can override this method to implement interruption of the future's
* computation. The method is invoked automatically by a successful call to
* {@link #cancel(boolean) cancel(true)}.
*
* <p>The default implementation does nothing.
*/
protected void interruptTask() {