equals
Deprecated
Don't compare AvailObject and arbitrary Object
Replace with
equals(AvailObject)Content copied to clipboard
{@inheritDoc}
This comparison operation takes an Object as its argument to avoid accidentally calling this with, say, a String literal. We mark it as deprecated to ensure we don't accidentally invoke this method when we really mean the version that takes an AvailObject as an argument.
IntelliJ conveniently shows such invocations with a struck-through font. That's a convenient warning for the programmer, even though it actually works correctly.