public class SuperCloneCheck extends AbstractSuperCheck
Checks that an overriding clone() method invokes super.clone().
Reference: Object.clone.
An example of how to configure the check is:
<module name="SuperClone"/>
Constructor and Description |
---|
SuperCloneCheck() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMethodName()
Returns the name of the overriding method.
|
beginTree, getDefaultTokens, leaveToken, visitToken
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public SuperCloneCheck()
protected String getMethodName()
AbstractSuperCheck
getMethodName
in class AbstractSuperCheck
Copyright © 2001–2015. All rights reserved.