Java - Checkstyle - Redundant投掷

时间:2015-01-13 10:01:43

标签: java checkstyle

我正在使用STS并安装了checkstyle插件。使用使用此URL安装新软件 http://eclipse-cs.sourceforge.net/update

我的Java项目有自己的checkstyle规则。每当我更改任何代码并保存时,它都会显示以下错误。

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规则

<module name="RedundantThrows">
            <property name="logLoadErrors" value="true" />
            <property name="suppressLoadErrors" value="true" />
        </module>

如何解决问题?

感谢。

2 个答案:

答案 0 :(得分:41)

RedundantThrows已使用版本6.2(请参阅https://github.com/checkstyle/checkstyle/issues/473

删除

答案 1 :(得分:0)

我对IntelliJ IDEA也有同样的经历我所做的是我已经切换到可以在这里找到的c​​heckstyle插件的旧版本: incrementally sync

相关问题