Replace DTO method parameters with data elements

MSAL

Replace method parameters that have DTOs with their data elements when only the specified data element is used.

org.openrewrite.java.migrate.DontOverfetchDto

Required

The fully qualified name of the DTO.

Replace the DTO as a method parameter when only this data element is used.

mod run . --recipe=org.openrewrite.java.migrate.DontOverfetchDto \ -P dtoType=animals.Dog \ -P dtoDataElement=name

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