Ответ 1
RedundantThrows был удален с версией 6.2 (см. https://github.com/checkstyle/checkstyle/issues/473)
Я использую STS и установлен плагин checkstyle. Использование нового программного обеспечения с этим URL-адресом http://eclipse-cs.sourceforge.net/update.
У меня есть собственное правило checkstyle для моего проекта 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
Это мое правило checkstyle для 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)
Я испытал то же самое с IntelliJ IDEA. Что я сделал, я переключился на более старую версию плагина checkstyle, которую можно найти здесь: https://plugins.jetbrains.com/plugin/1065