Use opposite operator instead of negating the whole expression with a logic complement operator. Example:
public boolean bar(int a, int b) {

  if (!(a == b)) // use !=
    return false;

  if (!(a < b)) // use >=
    return false;

  return true;
}

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