2015-01-13 9 views
23

Utilizzo STS e plug-in checkware installato. Utilizzando installa il nuovo software con questo URL http://eclipse-cs.sourceforge.net/update.Java - Checkstyle - Thund ridondanti

Ho la mia regola di controllo per il mio progetto Java. Ogni volta che cambio un codice e lo salvi, viene visualizzato il seguente errore.

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 

Questa è la mia regola checkstyle per RedundantThrows

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

Come risolvere il problema?

Grazie.

risposta

36

RedundantThrows è stato rimosso con la versione 6.2 (vedi https://github.com/checkstyle/checkstyle/issues/473)

+0

Quindi dovrei rimuovere quel modulo dalla regola checkstyle? Di recente ho creato una nuova istanza di STS e ho installato il plug-in. Prima funzionava perfettamente. – iCode

+1

Ho commentato il modulo ridondanteThrows. Ma sta mostrando di nuovo l'errore. – iCode

+0

Hai provato a eseguire checkstyle dalla riga di comando? Sei sicuro che solo il tuo file di configurazione è stato prelevato e non altri? –

Problemi correlati