How to avoid Eclipse importing a class when putting the class name in the comments, so that checkstyle does not complain later?

Viewed 4985

Sometimes I put the class name in the comments of methods or class just for referencing. But eclipse does the import automatically and leaves an import statement in the file which causes "unused import" checkstyle errors later. Is there some configuration I can change to avoid eclipse automatically importing when I type the class name in the comments?

4 Answers
Related