Find wait/notify/notifyAll called on a Thread instance
ProprietaryFinds invocations of Object.wait(...), Object.notify(), or Object.notifyAll() whose receiver is a java.lang.Thread (or subtype), including bare invocations inside a Thread subclass method that implicitly target this. The JVM uses a Thread instance's monitor internally to change thread state (BLOCKED, WAITING, etc.); calling these methods on a Thread can corrupt that state. Use a dedicated lock object as the monitor instead.
org. openrewrite. java. security. search. FindWaitNotifyOnThreadmod run . --recipe= org. openrewrite. java. security. search. FindWaitNotifyOnThreadInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.