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

Fix warnings: Unlikely argument type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • jfx20
    • jfx19
    • javafx
    • b01

    Description

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

      ```
      Unlikely argument type CssMetaData for containsKey(Object) on a Map<String,List<CascadingStyle>> Node_cssStyleMap_Test.java line 291 /graphics/src/test/java/test/javafx/css
      Unlikely argument type CssMetaData for containsKey(Object) on a Map<String,List<CascadingStyle>> Node_cssStyleMap_Test.java line 295 /graphics/src/test/java/test/javafx/css
      Unlikely argument type for equals(): Color seems to be unrelated to LinearGradient LinearGradientTest.java line 115 /graphics/src/test/java/test/javafx/scene/paint
      Unlikely argument type for equals(): Color seems to be unrelated to LinearGradient LinearGradientTest.java line 116 /graphics/src/test/java/test/javafx/scene/paint
      Unlikely argument type for equals(): Color seems to be unrelated to RadialGradient RadialGradientTest.java line 118 /graphics/src/test/java/test/javafx/scene/paint
      Unlikely argument type for equals(): Color seems to be unrelated to RadialGradient RadialGradientTest.java line 119 /graphics/src/test/java/test/javafx/scene/paint
      Unlikely argument type for equals(): Integer seems to be unrelated to List<String> ObservableSubListTest.java line 159 /base/src/test/java/test/javafx/collections
      Unlikely argument type for equals(): int seems to be unrelated to Duration TimelineController.java line 79 /samples/3DViewer/src/main/java/com/javafx/experiments/jfx3dviewer
      Unlikely argument type for equals(): Property<T> seems to be unrelated to BidirectionalBinding BidirectionalBindingTest.java line 217 /base/src/test/java/test/com/sun/javafx/binding
      Unlikely argument type for equals(): String seems to be unrelated to Background BackgroundTest.java line 346 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to BackgroundFill BackgroundFillTest.java line 86 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to BackgroundImage BackgroundImageTest.java line 218 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to BackgroundPosition BackgroundPositionTest.java line 153 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to BackgroundSize BackgroundSizeTest.java line 246 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to Border BorderTest.java line 562 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to BorderStrokeStyle BorderStrokeStyleTest.java line 175 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type for equals(): String seems to be unrelated to BorderWidths BorderWidthsTest.java line 206 /graphics/src/test/java/test/javafx/scene/layout
      Unlikely argument type Integer for contains(Object) on a Collection<String> ObservableSubListTest.java line 141 /base/src/test/java/test/javafx/collections
      Unlikely argument type Property<capture#1-of ?> for get(Object) on a Map<StyleableProperty<?>,List<Style>> Node_cssStyleMap_Test.java line 78 /graphics/src/test/java/test/javafx/css
      Unlikely argument type String for remove(Object) on a Collection<File> GetEvent.java line 104 /graphics/src/main/java/com/sun/glass/ui/monocle
      ```

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: