public final class MethodBodyCommentsCheck extends AbstractCheck
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.
AutomaticBean.OutputStreamOptions
Constructor and Description |
---|
MethodBodyCommentsCheck() |
Modifier and Type | Method and Description |
---|---|
int[] |
getAcceptableTokens() |
int[] |
getDefaultTokens() |
int[] |
getRequiredTokens() |
void |
visitToken(DetailAST ast) |
beginTree, clearMessages, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokens
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
configure, contextualize, getConfiguration, setupChild
public int[] getDefaultTokens()
getDefaultTokens
in class AbstractCheck
public int[] getAcceptableTokens()
getAcceptableTokens
in class AbstractCheck
public int[] getRequiredTokens()
getRequiredTokens
in class AbstractCheck
public void visitToken(DetailAST ast)
visitToken
in class AbstractCheck
Copyright © 2011–2018 Qulice.com. All rights reserved.