GH-9617: @SuppressWarnings("removal") for ListenableFuture

Fixes: #9617
Issue link: https://github.com/spring-projects/spring-integration/issues/9617

The `ListenableFuture` is marked `forRemoval` in Spring Framework.
So, fix the code base to use `@SuppressWarnings("removal")`.
Also, add a warning into logs that `ListenableFuture` support will be removed in `7.0`.

* Fix JavaDocs where `ListenableFuture` is mentioned in favor of `CompletableFuture`
This commit is contained in:
Artem Bilan
2024-10-30 15:24:10 -04:00
parent f423280f77
commit b50c40279a
7 changed files with 22 additions and 32 deletions

View File

@@ -49,11 +49,10 @@ import org.springframework.messaging.simp.stomp.StompSessionHandlerAdapter;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import org.springframework.util.concurrent.ListenableFuture;
/**
* Base {@link StompSessionManager} implementation to manage a single {@link StompSession}
* over its {@link ListenableFuture} from the target implementation of this class.
* over its {@link CompletableFuture} from the target implementation of this class.
* <p>
* The connection to the {@link StompSession} is made during {@link #start()}.
* <p>