effectivejava icon indicating copy to clipboard operation
effectivejava copied to clipboard

Item 8: in the equals method an instanceOf should be present and should not target other classes

Open ftomassetti opened this issue 12 years ago • 0 comments

  • .getClass should not be used
  • instanceOf should be used
  • the null comparison before the instanceOf is useless

ftomassetti avatar Jul 21 '14 19:07 ftomassetti