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

后端 未结 4 946
花落未央
花落未央 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:59

    In checkstyle.xml, change

    
    

    to:

    
            
    
    

    This requires version 6.0 of Checkstyle.

    Source: https://github.com/jboss/jboss-parent-pom/issues/23

提交回复
热议问题