Restore interrupted state in catch blocks
MSALWhen InterruptedException is caught, Thread.currentThread().interrupt() should be called to restore the thread's interrupted state. Failing to do so can suppress the interruption signal and prevent proper thread cancellation.
org. openrewrite. staticanalysis. InterruptedExceptionHandlingmod run . --recipe= org. openrewrite. staticanalysis. InterruptedExceptionHandlingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.