Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6588409 Only one of Object.equals and Object.hashCode overriden
  3. JDK-8153943

In PixelInterLeavedSampleModel and BandedSampleModel we dont need hashCode() method

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6.0, 7, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      generic

      Description

      hashCode() method present in PixelInterLeavedSampleModel and BandedSampleModel are just returning constant value and we don't have any unique variables to check in these sub-classes. We have equals() and hashCode() in ComponentSampleModel which serves the purpose.

        Attachments

          Activity

            People

            Assignee:
            jdv Jayathirth D V
            Reporter:
            jdv Jayathirth D V
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: