Skip to content

Commit 2956049

Browse files
committed
Polishing
1 parent 73ce3b5 commit 2956049

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public void addCallback(SuccessCallback<? super V> successCallback, FailureCallb
8484
try {
8585
successCallback.onSuccess(this.value);
8686
}
87-
catch (Throwable t) {
88-
failureCallback.onFailure(t);
87+
catch (Throwable ex) {
88+
failureCallback.onFailure(ex);
8989
}
9090
}
9191

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);
@@ -59,8 +59,8 @@ public void onSuccess(S result) {
5959
Throwable cause = ex.getCause();
6060
onFailure(cause != null ? cause : ex);
6161
}
62-
catch (Throwable t) {
63-
onFailure(t);
62+
catch (Throwable ex) {
63+
onFailure(ex);
6464
}
6565
}
6666
@Override

0 commit comments

Comments
 (0)