Class SuperCloneCheck
java.lang.Object
com.puppycrawl.tools.checkstyle.AbstractAutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractCheck
com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck
com.puppycrawl.tools.checkstyle.checks.coding.SuperCloneCheck
- All Implemented Interfaces:
- Configurable,- Contextualizable
 Checks that an overriding 
 clone() method invokes super.clone().
 Does not check native methods, as they have no possible java defined implementation.
 Reference: Object.clone().
- Since:
- 3.2
- 
Nested Class SummaryNested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.AbstractAutomaticBeanAbstractAutomaticBean.OutputStreamOptions
- 
Field SummaryFields inherited from class com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheckMSG_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheckbeginTree, getAcceptableTokens, getDefaultTokens, getRequiredTokens, leaveToken, visitTokenMethods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractCheckclearViolations, destroy, finishTree, getFileContents, getFilePath, getLine, getLineCodePoints, getLines, getTabWidth, getTokenNames, getViolations, init, isCommentNodesRequired, log, log, log, setFileContents, setTabWidth, setTokensMethods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporterfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityMethods inherited from class com.puppycrawl.tools.checkstyle.AbstractAutomaticBeanconfigure, contextualize, getConfiguration, setupChild
- 
Constructor Details- 
SuperCloneCheckpublic SuperCloneCheck()
 
- 
- 
Method Details- 
getMethodNameDescription copied from class:AbstractSuperCheckReturns the name of the overriding method.- Specified by:
- getMethodNamein class- AbstractSuperCheck
- Returns:
- the name of the overriding method.
 
 
-