Find JVM exit calls

MSAL

Marks calls to System.exit(int), Runtime.exit(int), and Runtime.halt(int). Terminating the JVM from library or application code is rarely correct: it bypasses the normal shutdown flow, prevents finally blocks from running in other threads, and can leave file, socket, and database resources in an inconsistent state. Runtime.halt is particularly dangerous because it also skips shutdown hooks.

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

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