effectivejava
effectivejava copied to clipboard
Item 8: in the equals method an instanceOf should be present and should not target other classes
- .getClass should not be used
- instanceOf should be used
- the null comparison before the instanceOf is useless