Java - Checkstyle - 冗余抛出

标签 java checkstyle

我正在使用 STS 并安装了 checkstyle 插件。将 install new software 与此 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 的检查样式规则

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

如何解决问题?

谢谢。

最佳答案

RedundantThrows 在 6.2 版本中被移除(参见 https://github.com/checkstyle/checkstyle/issues/473)

关于Java - Checkstyle - 冗余抛出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27919444/

相关文章:

java - 如何使用 JAVA servlet 获取 POST 请求以与 GWAN 配合使用

eclipse - 如何使用 CheckStyle 要求制表符缩进?

intellij-idea - 如何在 IDEA 中从 Gradle 设置 checkstyle 配置

java - 如何轻松修复 Checkstyle 错误?

checkstyle 的 svn 预提交钩子(Hook)

java - 无法从 1 个单项中减去?

java - ResultSetMetaData.getColumnName 为 UNION 和非 UNION 查询返回不同的值

java - 在 Thread 上调用 interrupt(),但它从未被中断

java - 打印格式

scala - 如何将checkstyle和PMD集成到Play框架的Build.scala文件中