Find Base64.getDecoder() calls inside loops

Proprietary

Base64.getDecoder() returns a shared singleton, so the call itself is cheap — but reading the decoder from a final field is cheaper still. Hoist the decoder to a top-level private val for clarity.

org.openrewrite.kotlin.performance.FindBase64GetDecoderInLoops$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.performance.FindBase64GetDecoderInLoops$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.