Skip to content

Commit 16a4fe7

Browse files
committed
Polishing
(cherry picked from commit 2956049)
1 parent 6117311 commit 16a4fe7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
/**
2222
* Abstract class that adapts a {@link ListenableFuture} parameterized over S into a
2323
* {@code ListenableFuture} parameterized over T. All methods are delegated to the
24-
* adaptee, where {@link #get()}, {@link #get(long, java.util.concurrent.TimeUnit)}, and
25-
* {@link ListenableFutureCallback#onSuccess(Object)} call {@link #adapt(Object)} on the
26-
* adaptee's result.
24+
* adaptee, where {@link #get()}, {@link #get(long, java.util.concurrent.TimeUnit)},
25+
* and {@link ListenableFutureCallback#onSuccess(Object)} call {@link #adapt(Object)}
26+
* on the adaptee's result.
2727
*
2828
* @param <T> the type of this {@code Future}
2929
* @param <S> the type of the adaptee's {@code Future}
@@ -34,7 +34,7 @@ public abstract class ListenableFutureAdapter<T, S> extends FutureAdapter<T, S>
3434

3535
/**
3636
* Construct a new {@code ListenableFutureAdapter} with the given adaptee.
37-
* @param adaptee the future to adaptee to
37+
* @param adaptee the future to adapt to
3838
*/
3939
protected ListenableFutureAdapter(ListenableFuture<S> adaptee) {
4040
super(adaptee);
@@ -53,8 +53,8 @@ public void onSuccess(S result) {
5353
Throwable cause = ex.getCause();
5454
onFailure(cause != null ? cause : ex);
5555
}
56-
catch (Throwable t) {
57-
onFailure(t);
56+
catch (Throwable ex) {
57+
onFailure(ex);
5858
}
5959
}
6060
@Override

0 commit comments

Comments
 (0)