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

javac option that reports unneccessary or unused import statements

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.3.0
    • tools
    • generic
    • generic



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: