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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user