Find if (log.isDebugEnabled) ... guards
Proprietaryif (log.isDebugEnabled) log.debug(...) is the Java-1.4-era idiom — replaced by kotlin-logging's log.debug { "..." } lambda or SLF4J's log.debug("x={}", x) placeholder form. Either defers the work without the explicit guard.
org. openrewrite. kotlin. logging. FindIsDebugEnabledGuard$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindIsDebugEnabledGuard$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.