Remove redundant casts
MSALRemoves unnecessary type casts. Does not currently check casts in lambdas and class constructors. Redundant casts add visual noise and can obscure the actual type relationships in the code, making it harder to follow the data flow.
org. openrewrite. staticanalysis. RemoveRedundantTypeCastmod run . --recipe= org. openrewrite. staticanalysis. RemoveRedundantTypeCastInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.