This rule is defined by the following XPath expression:
//StatementExpression/PrimaryExpression [count(PrimarySuffix/Arguments/ArgumentList) = 0] [ PrimaryPrefix[./Name[@Image='notify' or ends-with(@Image,'.notify')] or @Image='notify' or (./AllocationExpression and ../PrimarySuffix[@Image='notify']) ] ]
Example:
public class Foo { void bar() { x.notify(); // If many threads are monitoring x, only one (and you won't know which) will be notified. // use instead: x.notifyAll(); } }