Migrate ListenableFuture to CompletableFuture

Proprietary

Spring 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.MigrateListenableFuture
mod run . --recipe=io.moderne.java.spring.framework7.MigrateListenableFuture

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.