Replace Object.notify() with Object.notifyAll()
MSALObject.notifyAll() and Object.notify() both wake up sleeping threads, but Object.notify() only rouses one while Object.notifyAll() rouses all of them. Since Object.notify() might not wake up the right thread, Object.notifyAll() should be used instead. See this for more information. Using notify() in a multi-waiter scenario risks leaving threads permanently stalled when the wrong one is awakened.
org. openrewrite. staticanalysis. UseObjectNotifyAllmod run . --recipe= org. openrewrite. staticanalysis. UseObjectNotifyAllInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.