Refaster template FormattedArgumentsToVMethod.WarnToVWarn

MSAL

Recipe created for the following Refaster template:

public static class WarnToVWarn {
    
    @BeforeTemplate
    void before(Logger logger, String message, Object[] args) {
        logger.warn(message, args);
    }
    
    @AfterTemplate
    void after(Logger logger, String message, Object[] args) {
        logger.warnv(message, args);
    }
}

.

org.openrewrite.java.logging.jboss.FormattedArgumentsToVMethodRecipes$WarnToVWarnRecipe
mod run . --recipe='org.openrewrite.java.logging.jboss.FormattedArgumentsToVMethodRecipes$WarnToVWarnRecipe'

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