Skip to content

Commit 2c0ce79

Browse files
committed
Avoid deprecated ListenableFuture name for internal class
1 parent d512aaf commit 2c0ce79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: 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.
@@ -572,7 +572,7 @@ protected void handleMatch(T mapping, HandlerMethod handlerMethod, String lookup
572572
if (returnValue != null && this.returnValueHandlers.isAsyncReturnValue(returnValue, returnType)) {
573573
CompletableFuture<?> future = this.returnValueHandlers.toCompletableFuture(returnValue, returnType);
574574
if (future != null) {
575-
future.whenComplete(new ReturnValueListenableFutureCallback(invocable, message));
575+
future.whenComplete(new ReturnValueCallback(invocable, message));
576576
}
577577
}
578578
else {
@@ -703,13 +703,13 @@ public int compare(Match match1, Match match2) {
703703
}
704704

705705

706-
private class ReturnValueListenableFutureCallback implements BiConsumer<Object, Throwable> {
706+
private class ReturnValueCallback implements BiConsumer<Object, Throwable> {
707707

708708
private final InvocableHandlerMethod handlerMethod;
709709

710710
private final Message<?> message;
711711

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

0 commit comments

Comments
 (0)