IllegalMonitorStateException is generally only thrown in case of a design flaw in your code (calling wait or notify on an object you do not hold a lock on).

This rule is deprecated, use {rule:squid:S2235} instead.