Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Checkstyle - Redundant Throws

I'm using STS and installed checkstyle plugin. Using install new software with this URL http://eclipse-cs.sourceforge.net/update.

I have my own checkstyle rule for my Java project. Whenever I change any code and save it shows the following error for me.

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

This is my checkstyle rule for RedundantThrows

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

How to fix the problem?

Thanks.

like image 786
iCode Avatar asked Jan 13 '15 10:01

iCode


1 Answers

RedundantThrows was removed with version 6.2 (see https://github.com/checkstyle/checkstyle/issues/473)

like image 175
Joachim Rohde Avatar answered Oct 18 '22 18:10

Joachim Rohde