Migrate defaultScrollSubrange(ScrollSubrange) to defaultScrollSubrange(int, Function)

Proprietary

The defaultScrollSubrange(ScrollSubrange) methods on the QuerydslDataFetcher and QueryByExampleDataFetcher builders are deprecated for removal in favor of defaultScrollSubrange(int, Function<Boolean, ScrollPosition>). This recipe rewrites calls passing ScrollSubrange.create(position, count, forward) to defaultScrollSubrange(count, forward -> position), mirroring the deprecated method, which ignores the forward flag.

io.moderne.java.spring.graphql.MigrateDefaultScrollSubrange
mod run . --recipe=io.moderne.java.spring.graphql.MigrateDefaultScrollSubrange

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