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

javac option that reports unneccessary or unused import statements

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: skT45625 Date: 10/13/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      What do you think about a compiler option that would indicated unused import
        statements. Our dev org has a standard of always explicitly referencing classes
      in import statements - no * allowed. It as a class evolves it would be nice if
      the compiler would help us keep the imports accurate by reporting when an
      import was not used.
      (Review ID: 110841)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            gafter Neal Gafter
            Reporter:
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: