Use explicit types on lambda arguments
MSALAdds explicit types on lambda arguments, which are otherwise optional. This can make the code clearer and easier to read. This does not add explicit types on arguments when the lambda has one or two parameters and does not have a block body, as things are considered more readable in those cases. For example, (a, b) -> a.length() - b.length() will not have explicit types added.
org. openrewrite. staticanalysis. ExplicitLambdaArgumentTypesmod run . --recipe= org. openrewrite. staticanalysis. ExplicitLambdaArgumentTypesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.