• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CheckStyle in java

 
Malarvizhi Muthu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I need to add customized checks to my project, apart from those that are in sun_checks.xml. I have gone through the link: http://checkstyle.sourceforge.net/writingchecks.html. And created a class MethodLimitChecks as per the instruction given in that page. But i getting an error like "Cannot initialise module TreeWalker: unable to instantiate MethodLimitCheck".
Could anyione post a solution for this?
Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And created a class MethodLimitChecks

Cannot initialise module TreeWalker: unable to instantiate MethodLimitCheck


This looks suspicious. Or was that a typo?
 
Malarvizhi Muthu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is MethodLimitCheck.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it was just a typo in your post here? Or a typo in your code?
 
Malarvizhi Muthu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typo in my post
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic