Java-Checkstyle-冗余抛出 [英] Java - Checkstyle - Redundant Throws
本文介绍了Java-Checkstyle-冗余抛出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用STS并安装了checkstyle插件。使用带有此URL的安装新软件
http://eclipse-cs.sourceforge.net/更新。
I'm using STS and installed checkstyle plugin. Using install new software with this URL http://eclipse-cs.sourceforge.net/update.
我对Java项目有自己的checkstyle规则。每当我更改任何代码并保存时,都会为我显示以下错误。
I have my own checkstyle rule for my Java project. Whenever I change any code and save it shows the following error for me.
Errors occurred during the build.
Errors running builder 'Checkstyle Builder' on project 'myproject'.
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows
cannot initialize module TreeWalker - Unable to instantiate RedundantThrows
这是我对RedundantThrows的checkstyle规则
This is my checkstyle rule for RedundantThrows
<module name="RedundantThrows">
<property name="logLoadErrors" value="true" />
<property name="suppressLoadErrors" value="true" />
</module>
如何解决该问题?
谢谢。
推荐答案
RedundantThrows已在6.2版中删除(请参见 https://github.com/checkstyle/checkstyle/issues/473 )
RedundantThrows was removed with version 6.2 (see https://github.com/checkstyle/checkstyle/issues/473)
这篇关于Java-Checkstyle-冗余抛出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文