public final class MethodBodyCommentsCheck extends Check
We believe that in-code comments and empty lines are evil. If you need to use a comment inside a method - your code needs refactoring. Either move that comment to a method javadoc block or add a logging mechanism with the same text.
Constructor and Description |
---|
MethodBodyCommentsCheck() |
Modifier and Type | Method and Description |
---|---|
int[] |
getDefaultTokens() |
void |
visitToken(DetailAST ast) |
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public int[] getDefaultTokens()
getDefaultTokens
in class Check
public void visitToken(DetailAST ast)
visitToken
in class Check
Copyright © 2011–2016 Qulice.com. All rights reserved.