Skip to content

Commit

Permalink
Avoid deprecated ListenableFuture name for internal class
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Dec 11, 2024
1 parent 8aeced9 commit 72c2343
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -573,7 +573,7 @@ protected void handleMatch(T mapping, HandlerMethod handlerMethod, String lookup
if (returnValue != null && this.returnValueHandlers.isAsyncReturnValue(returnValue, returnType)) {
CompletableFuture<?> future = this.returnValueHandlers.toCompletableFuture(returnValue, returnType);
if (future != null) {
future.whenComplete(new ReturnValueListenableFutureCallback(invocable, message));
future.whenComplete(new ReturnValueCallback(invocable, message));
}
}
else {
Expand Down Expand Up @@ -704,13 +704,13 @@ public int compare(Match match1, Match match2) {
}


private class ReturnValueListenableFutureCallback implements BiConsumer<Object, Throwable> {
private class ReturnValueCallback implements BiConsumer<Object, Throwable> {

private final InvocableHandlerMethod handlerMethod;

private final Message<?> message;

public ReturnValueListenableFutureCallback(InvocableHandlerMethod handlerMethod, Message<?> message) {
public ReturnValueCallback(InvocableHandlerMethod handlerMethod, Message<?> message) {
this.handlerMethod = handlerMethod;
this.message = message;
}
Expand Down

0 comments on commit 72c2343

Please sign in to comment.