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

Fix warnings: Varargs methods should only override or be overridden by other varargs methods

    XMLWordPrintable

Details

    Description

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

      ```
      Varargs methods should only override or be overridden by other varargs methods unlike AudioEqualizer.Bands.onProposedChange(List<EqualizerBand>, int[]) and VetoableListDecorator<EqualizerBand>.onProposedChange(List<EqualizerBand>, int...) AudioEqualizer.java line 211 /media/src/main/java/javafx/scene/media
      Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<Image>(){}.onProposedChange(List<Image>, int[]) and VetoableListDecorator<Image>.onProposedChange(List<Image>, int...) Stage.java line 699 /graphics/src/main/java/javafx/stage
      Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<Node>(){}.onProposedChange(List<Node>, int[]) and VetoableListDecorator<Node>.onProposedChange(List<Node>, int...) Parent.java line 469 /graphics/src/main/java/javafx/scene
      Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<Person>(){}.onProposedChange(List<Person>, int[]) and VetoableListDecorator<Person>.onProposedChange(List<Person>, int...) SourceAdapterChangeTest.java line 59 /base/src/test/java/test/javafx/collections
      Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<String>(){}.onProposedChange(List, int[]) and VetoableListDecorator<String>.onProposedChange(List<String>, int...) TestedObservableLists.java line 46 /base/src/test/java/test/javafx/collections
      Varargs methods should only override or be overridden by other varargs methods unlike new VetoableListDecorator<String>(){}.onProposedChange(List<String>, int[]) and VetoableListDecorator<String>.onProposedChange(List<String>, int...) VetoableObservableListTest.java line 83 /base/src/test/java/test/javafx/collections
      Varargs methods should only override or be overridden by other varargs methods unlike ObservableFloatArrayImpl.setAll(float[]) and ObservableFloatArray.setAll(float...) ObservableFloatArrayImpl.java line 155 /base/src/main/java/com/sun/javafx/collections
      Varargs methods should only override or be overridden by other varargs methods unlike ObservableIntegerArrayImpl.setAll(int[]) and ObservableIntegerArray.setAll(int...) ObservableIntegerArrayImpl.java line 155 /base/src/main/java/com/sun/javafx/collections
      ```

      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: