Find wait() and await() outside a loop
ProprietaryMarks calls to Object.wait() and Condition.await(), and their variants, whose innermost loop is not a while, a do/while or a for (;;); a for-each does not count as a loop. A spurious wakeup lets code guarded only by if continue as though the condition held. A loop outside the lambda or class holding the call does not count. Test sources are skipped.
io. moderne. staticanalysis. FindWaitOutsideLoopmod run . --recipe= io. moderne. staticanalysis. FindWaitOutsideLoopInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.