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

☂ Remove unused imports

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Delivered
    • Icon: P4 P4
    • None
    • None
    • javafx
    • Fix Understood

      Eclipse Version: 2022-06 (4.24.0) compiler seems to report more programming problems than javac.

      As of 2024/03/21, the master branch generates 744 "import is never used" warnings.

      See the discussion in JDK-8289379

      PROBLEM:
      The code in graphics/build/gensrc/jsl-decora/ is generated and cannot be easily fixed - the template for imports seems to be in JSWGlue.stg and by the looks of it this file is being used for all the generated code.
      This means this warning **must be suppressed** in IDEs until the generator script is changed not to emit unused imports.

      Q: should we enable this warning in the gradle build once all imports are fixed?

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

              Created:
              Updated:
              Resolved: