Use var for primitive and String variables

MSAL

Try 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.UseVarForPrimitive
mod run . --recipe=org.openrewrite.java.migrate.lang.var.UseVarForPrimitive

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