Checkstyle Eclipse plugin doesn't work

后端 未结 4 1932
长发绾君心
长发绾君心 2021-02-04 23:45

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

cannot initiali         


        
相关标签:
4条回答
  • 2021-02-04 23:53

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

    0 讨论(0)
  • 2021-02-04 23:57

    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.

    enter image description here

    0 讨论(0)
  • 2021-02-05 00:00
    • 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"

    0 讨论(0)
  • 2021-02-05 00:15

    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

    0 讨论(0)
提交回复
热议问题