Remove garbage collection invocations
MSALRemoves 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. RemoveCallsToSystemGcmod run . --recipe= org. openrewrite. staticanalysis. RemoveCallsToSystemGcInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.