Remove Object.finalize() invocations
MSALRemove calls to Object.finalize(). This method is called during garbage collection and calling it manually is misleading. Explicit finalize invocations can trigger resource cleanup prematurely while the object is still in use, leading to unpredictable behavior.
org. openrewrite. staticanalysis. RemoveCallsToObjectFinalizemod run . --recipe= org. openrewrite. staticanalysis. RemoveCallsToObjectFinalizeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.