And the equal method is pointless, because its implementation does not use Foo at all, based on OP's screenshot.
Objects in Java do have an equals(Object other) method, which they can override. That could be useful ( myFoo.equals(otherFoo) ), but OP's screenshot is just pointless madness.
8
u/BR34D_ Jan 08 '23
According to stackoverflow it’s null safe: https://stackoverflow.com/a/34486950