Description:

Run “check code with checkstyle” and show follow message

cannot initialize module TreeWalker - Unable to instantiate 'RedundantThrows' class, it is also not possible to instantiate it as com.puppycrawl.tools.checkstyle.checks.annotation.RedundantThrows,
...

 

Solution:

edit checkstyle config xml and comment follow tag

...
<!--<module name="RedundantThrows">
      <property name="suppressLoadErrors" value="true"/>
</module>-->
...