Java - Checkstyle - 冗余投掷

Java - Checkstyle - Redundant Throws

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

如何解决问题?

谢谢。

RedundantThrows 已从 6.2 版中移除(参见 https://github.com/checkstyle/checkstyle/issues/473

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