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

后端 未结 4 951
花落未央
花落未央 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 22:57

    The Checkstyle bug has been fixed now. In Checkstyle config, go Imports > Unused Imports > click Open > make sure processJavadoc is checked.

    enter image description here

    Now Checkstyle doesn't warn on this anymore.

提交回复
热议问题