Eclipse – Checkstyle Eclipse plugin doesn’t work

checkstyleeclipseeclipse-plugin

I'm using eclipse checkstyle plugin with Juno Eclipse distribution. Anytime the code is checked for checkstyle error I get the following error:

cannot initialize module TreeWalker - Unable to instantiate DoubleCheckedLocking

Does anybody know how to fix this problem? Is it a plugin compatibility issue or something else?

Best Answer

The DoubleCheckedLocking check has been removed in Checkstyle 5.6 and must be manually removed from your Checkstyle configuration.

See also: http://sourceforge.net/tracker/index.php?func=detail&aid=3571442&group_id=29721&atid=397078