Remove garbage collection invocations

MSAL

Removes calls to System.gc() and Runtime.gc(). When to invoke garbage collection is best left to the JVM. Manual GC calls produce unpredictable results across different JVM implementations and can cause unnecessary application pauses.

org.openrewrite.staticanalysis.RemoveCallsToSystemGc
mod run . --recipe=org.openrewrite.staticanalysis.RemoveCallsToSystemGc

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