Checkstyle Eclipse plugin doesn't work

爱⌒轻易说出口 提交于 2019-12-03 00:53:50

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

Open the Checkstyle preferences, create your own Check Configuration, go into your own check configuration, find the TreeWalker module, click it and then un-check the DoubleCheckedLocking. As simple as that.

just comment or remove "DoubleCheckedLocking" from the checkstyle file and it will work

  • Under your Eclipse Workspace Search for file internal_config__*.xml
  • Remove the following line from the file

    <module name="DoubleCheckedLocking"/>

  • Reload Workspace.

This will work for any discontinued module which produces the error message "Unable to instantiate"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!