Skip to content

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

@ftomassetti

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions