Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289389

Fix warnings: type should also implement hashCode() since it overrides Object.equals()

XMLWordPrintable

    • b01

      Eclipse Version 2022-06 (4.24.0) reports this warning in the following places:

      ```
      The type CalculatedValue should also implement hashCode() since it overrides Object.equals() CalculatedValue.java line 29 /graphics/src/main/java/com/sun/javafx/css
      The type FXMLLoader should also implement hashCode() since it overrides Object.equals() FXMLLoader.java line 107 /fxml/src/main/java/javafx/fxml
      The type IntSet should also implement hashCode() since it overrides Object.equals() IntSet.java line 33 /graphics/src/main/java/com/sun/glass/ui/monocle
      The type ListViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals() ListViewTest.java line 1700 /controls/src/test/java/test/javafx/scene/control
      The type NativeMediaAudioClipPlayer.SchedulerEntry should also implement hashCode() since it overrides Object.equals() NativeMediaAudioClipPlayer.java line 454 /media/src/main/java/com/sun/media/jfxmediaimpl
      The type NativeMediaAudioClipPlayer should also implement hashCode() since it overrides Object.equals() NativeMediaAudioClipPlayer.java line 47 /media/src/main/java/com/sun/media/jfxmediaimpl
      The type TableViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals() TableViewTest.java line 5076 /controls/src/test/java/test/javafx/scene/control
      The type TreeTableViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals() TreeTableViewTest.java line 5732 /controls/src/test/java/test/javafx/scene/control
      The type TreeViewTest.RT22599_DataType should also implement hashCode() since it overrides Object.equals() TreeViewTest.java line 3062 /controls/src/test/java/test/javafx/scene/control
      The type WCRectangle should also implement hashCode() since it overrides Object.equals() WCRectangle.java line 28 /web/src/main/java/com/sun/webkit/graphics
      ```

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: