Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-120

equals and hashCode are incomplete

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 2.0
    • CLI-2.x
    • None

    Description

      there are many classes with equals and hashCode implemented however there are also classes which don't. We need to be consistent and if we are using equals then we need to define it for all classes in the affected hierarchy. For example OptionImpl has an equals but ParentImpl which extends OptionImpl and has several new members doesn't.

      Attachments

        1. ArgumentEqualsPatch.diff
          11 kB
          Holger S.

        Activity

          People

            Unassigned Unassigned
            aks Andrew Shirley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: