Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-242

CSVFormat equals() and hashCode() don't use all fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It looks like the equals() and hash() methods of CSVFormat were not updated when some new fields were added, for example: trim

      Need to add tests to ensure all fields contribute to equals().
      Best to ensure they all contribute to hash() as well, though that is not essential.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: