web-dev-qa-db-ja.com

Java-Checkstyle-冗長なスロー

私はSTSを使用しており、checkstyleプラグインをインストールしています。このURLで新しいソフトウェアをインストールするを使用する http://Eclipse-cs.sourceforge.net/update .

Javaプロジェクトに独自のチェックスタイルルールがあります。コードを変更して保存すると、次のエラーが表示されます。

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>

問題を修正するには?

ありがとう。

25
iCode

RedundantThrowsはバージョン6.2で削除されました( https://github.com/checkstyle/checkstyle/issues/47 を参照)

41
Joachim Rohde

私はIntelliJで同じことを経験しましたIDEA私がしたことは、ここにある古いバージョンのcheckstyleプラグインに切り替えたことです: https://plugins.jetbrains.com/ plugin/1065

0
Dosi Bingov