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