Polishing
This commit is contained in:
@@ -44,7 +44,7 @@ public class ListenableFutureCallbackRegistry<T> {
|
||||
|
||||
|
||||
/**
|
||||
* Adds the given callback to this registry.
|
||||
* Add the given callback to this registry.
|
||||
* @param callback the callback to add
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -67,7 +67,7 @@ public class ListenableFutureCallbackRegistry<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given success callback to this registry.
|
||||
* Add the given success callback to this registry.
|
||||
* @param callback the success callback to add
|
||||
* @since 4.1
|
||||
*/
|
||||
@@ -87,7 +87,7 @@ public class ListenableFutureCallbackRegistry<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given failure callback to this registry.
|
||||
* Add the given failure callback to this registry.
|
||||
* @param callback the failure callback to add
|
||||
* @since 4.1
|
||||
*/
|
||||
@@ -107,8 +107,8 @@ public class ListenableFutureCallbackRegistry<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Triggers a {@link ListenableFutureCallback#onSuccess(Object)} call on all
|
||||
* added callbacks with the given result
|
||||
* Trigger a {@link ListenableFutureCallback#onSuccess(Object)} call on all
|
||||
* added callbacks with the given result.
|
||||
* @param result the result to trigger the callbacks with
|
||||
*/
|
||||
public void success(T result) {
|
||||
@@ -122,7 +122,7 @@ public class ListenableFutureCallbackRegistry<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Triggers a {@link ListenableFutureCallback#onFailure(Throwable)} call on all
|
||||
* Trigger a {@link ListenableFutureCallback#onFailure(Throwable)} call on all
|
||||
* added callbacks with the given {@code Throwable}.
|
||||
* @param ex the exception to trigger the callbacks with
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user