Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10588

implement hashCode method for HWISessionItem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Web UI
    • None

    Description

      HWISessionItem overwrites equals method but not hashCode method.
      It violates java contract below:
      "If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result."
      Currently equals and compareTo methods use sessionName in their implementation.
      sessionName.hashcode() can be used in HWISessionItem.hashCode as well.

      Attachments

        1. rb33796.patch
          0.6 kB
          Alexander Pivovarov
        2. HIVE-10588.1.patch
          0.6 kB
          Alexander Pivovarov

        Activity

          People

            apivovarov Alexander Pivovarov
            apivovarov Alexander Pivovarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: