Java – Checkstyle – Redundant投掷

我正在使用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规则

     

如何解决问题?

谢谢。

版本6.2删除了RedundantThrows(请参阅https://github.com/checkstyle/checkstyle/issues/473 )

我对IntelliJ IDEA也有同样的经历我所做的是我已经切换到旧版本的checkstyle插件,可以在这里找到: https : //plugins.jetbrains.com/plugin/1065