Fix version in ListenableFuture removal warning message

This commit is contained in:
Artem Bilan
2024-10-30 16:28:26 -04:00
parent bab7e8d579
commit ff2b295be8
2 changed files with 2 additions and 2 deletions

View File

@@ -544,7 +544,7 @@ public class GatewayProxyFactoryBean<T> extends AbstractEndpoint
else if (org.springframework.util.concurrent.ListenableFuture.class.equals(returnType)) {
logger.warn("The 'org.springframework.util.concurrent.ListenableFuture' is deprecated for removal." +
"The 'CompletableFuture' is recommended to be used instead." +
"The 'ListenableFuture' support will be removed in Spring Integration 7.0.");
"The 'ListenableFuture' support will be removed in Spring Integration 6.5.");
return ((org.springframework.core.task.AsyncListenableTaskExecutor) this.asyncExecutor)
.submitListenable(invoker::get);
}

View File

@@ -427,7 +427,7 @@ public abstract class AbstractMessageProducingHandler extends AbstractMessageHan
else {
logger.warn("The 'org.springframework.util.concurrent.ListenableFuture' is deprecated for removal." +
"The 'CompletableFuture' is recommended to be used instead." +
"The 'ListenableFuture' support will be removed in Spring Integration 7.0.");
"The 'ListenableFuture' support will be removed in Spring Integration 6.5.");
return ((org.springframework.util.concurrent.ListenableFuture<?>) reply).completable();
}
}