Skip to content

Commit 72c2343

Browse files
committed
Avoid deprecated ListenableFuture name for internal class
1 parent 8aeced9 commit 72c2343

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -573,7 +573,7 @@ protected void handleMatch(T mapping, HandlerMethod handlerMethod, String lookup
573573
if (returnValue != null && this.returnValueHandlers.isAsyncReturnValue(returnValue, returnType)) {
574574
CompletableFuture<?> future = this.returnValueHandlers.toCompletableFuture(returnValue, returnType);
575575
if (future != null) {
576-
future.whenComplete(new ReturnValueListenableFutureCallback(invocable, message));
576+
future.whenComplete(new ReturnValueCallback(invocable, message));
577577
}
578578
}
579579
else {
@@ -704,13 +704,13 @@ public int compare(Match match1, Match match2) {
704704
}
705705

706706

707-
private class ReturnValueListenableFutureCallback implements BiConsumer<Object, Throwable> {
707+
private class ReturnValueCallback implements BiConsumer<Object, Throwable> {
708708

709709
private final InvocableHandlerMethod handlerMethod;
710710

711711
private final Message<?> message;
712712

713-
public ReturnValueListenableFutureCallback(InvocableHandlerMethod handlerMethod, Message<?> message) {
713+
public ReturnValueCallback(InvocableHandlerMethod handlerMethod, Message<?> message) {
714714
this.handlerMethod = handlerMethod;
715715
this.message = message;
716716
}

0 commit comments

Comments
 (0)