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

    • Sub-task
    • Resolution: Unresolved
    • P4
    • tbd
    • 6.0, 7, 8, 9
    • client-libs
    • 2d
    • generic
    • 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

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

            Dates

              Created:
              Updated: