com.puppycrawl.tools.checkstyle.checks.coding

Class SuperCloneCheck

Implemented Interfaces:
Configurable, Contextualizable

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"/>
 
Author:
Rick Giles

Method Summary

protected String
getMethodName()

Methods inherited from class com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck

beginTree, getDefaultTokens, getMethodName, leaveToken, visitToken

Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check

beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter

getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, setSeverity

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Method Details

getMethodName

protected String getMethodName()
Overrides:
getMethodName in interface AbstractSuperCheck