From ff2b295be873435aac1b692bba5b5797ccdc0eb1 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 30 Oct 2024 16:28:26 -0400 Subject: [PATCH] Fix version in `ListenableFuture` removal warning message --- .../integration/gateway/GatewayProxyFactoryBean.java | 2 +- .../integration/handler/AbstractMessageProducingHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java b/spring-integration-core/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java index 1b3773ae47..7c0c99c2bd 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/gateway/GatewayProxyFactoryBean.java @@ -544,7 +544,7 @@ public class GatewayProxyFactoryBean 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); } diff --git a/spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractMessageProducingHandler.java b/spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractMessageProducingHandler.java index 7dd30e4520..ac9bb80e73 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractMessageProducingHandler.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractMessageProducingHandler.java @@ -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(); } }