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

Suppress deprecation and removal warnings of internal methods

    XMLWordPrintable

    Details

      Description

      There are a few places in JavaFX where we use public JavaFX API that has been deprecated or deprecated for removal. Since there is no problem with using these methods internally, we should add the appropriate `@SuppressWarnings` annotation where needed to make the build less noisy.

      I have attached a pair of log files generated by running:

      gradle --info -PLINT="deprecation,removal"

      The first file is the list of [deprecation] warnings and the second is the list of [removal] warnings.

      Note that included in the list of deprecation warnings is a use of the deprecated newInstance method from java.base. These will be addressed separately, by using a replacement API, rather than suppressing the warnings.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: