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

New lint option to warn of unused import statements.

XMLWordPrintable

    • x86, sparc
    • solaris_9, windows_xp

      Lately I've been writing code that uses pieces from numerous packages.
      I've got a large collection of boilerplate import statements that I tend
      to pick and choose from. If I miss one, the compiler of course lets me know.
      But if I have unused import statements, the compiler of course doesn't care.

      For readability, I'd like to remove the superfluous imports. Gee it would
      sure be swell if the compiler had a lint flag that would trigger a warning
      about them.

            jlahoda Jan Lahoda
            sseligmasunw Scott Seligman (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: