Use var for primitive and String variables
MSALTry to apply local variable type inference var to primitive and String literal variables where possible. This recipe will not touch variable declarations with initializers containing ternary operators.
org. openrewrite. java. migrate. lang. var. UseVarForPrimitivemod run . --recipe= org. openrewrite. java. migrate. lang. var. UseVarForPrimitiveInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.