Checkstyle error: Uncommented main method found…

Just for the record: The checkstyle error Uncommented main method found does NOT mean the main method lacks a javadoc comment, but that the main method is not commented out. Checkstyle regards main methods as useless “debugging” leftovers.

//CHECKSTYLE:OFF and //CHECKSTYLE:ON helped me out. And yes, i think this particular check is really, really, really useless. I think someone using arbitrary main methods in sourcecode for debugging purposes is hardly going to know of checkstyle’s existence anyway…

This entry was posted on Wednesday, May 14th, 2008 at 17:13. Posted in: fun with code, java. You can follow any responses to this entry through the RSS 2.0feed. You can leave a response, or trackback from your own site.

Leave a Reply