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

后端 未结 4 944
花落未央
花落未央 2021-02-12 22:43

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 whi

4条回答
  •  逝去的感伤
    2021-02-12 23:12

    If you use the fully-qualified class name in the JavaDoc, Eclipse will not add an import, e.g.

    /**
     * This class is a {@link java.io.File} that blah blah blah
     */
    

提交回复
热议问题