Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8815

RandomDatum overrides equals(Object) but no hashCode()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.6.0
    • test
    • None
    • Reviewed

    Description

      Override equal() but not hashCode() is a violation of the general contract for Object.hashCode will occur, which can have unexpected repercussions when this class is in conjunction with all hash-based collections.

      This test class is used in multiple places, so it may be worth fixing.

      Attachments

        1. HADOOP-8815.patch
          2 kB
          Brandon Li
        2. HADOOP-8815.patch
          2 kB
          Brandon Li

        Activity

          People

            brandonli Brandon Li
            brandonli Brandon Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: