Migrate ListenableFuture to CompletableFuture
ProprietarySpring Framework 6.0 deprecated ListenableFuture in favor of CompletableFuture. Spring Framework 7.0 removes ListenableFuture entirely. This recipe migrates usages of ListenableFuture and its callbacks to use CompletableFuture and BiConsumer instead.
io. moderne. java. spring. framework7. MigrateListenableFuturemod run . --recipe= io. moderne. java. spring. framework7. MigrateListenableFutureInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.