Skip to content

Override equals() and hashCode() in Impl-Classes #26

@sne11ius

Description

@sne11ius

I think LinkImpl, RatioImpl etc. should override equals() and hashCode() more consistently.

  • LinkImpl doesn't override any of the two
  • RatioImpl overrides equals(), but not hashCode(). And the implementation of equals() relies on object identity of the numerators und denominators

My suggestions would be to generate all equals and hashCode implementations for these classes with your IDE of choice.

I would have created a pr, but I read you dont accept any...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions