Community
Participate
Working Groups
the title says it all: go to java compiler settings, set "unused imports" to "warn". now if the file is not well formed syntactically (i.e, when editing) all imports have a lightbulb next to them suggesting to remove them. happens with eclipse 2 GM1.
Due to syntax recovery, in presence of syntax errors, we may not rebuild sections of source containing references through some imports. e.g. import java.io.*; class X { { IOException e; note that the following would still work fine: import java.io.*; class X { IOException e; in spite of the missing closing curly brace.
Fixed, no unused import report is made if any syntax errors was reported.
Verified.