Replaces anequals() method call with an == equality operator.