com.puppycrawl.tools.checkstyle.checks.coding
Class SuperFinalizeCheck
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.coding.AbstractSuperCheck
com.puppycrawl.tools.checkstyle.checks.coding.SuperFinalizeCheck
- All Implemented Interfaces:
- Configurable, Contextualizable
public class SuperFinalizeCheck
- extends AbstractSuperCheck
Checks that an overriding finalize() method invokes super.finalize().
Reference:
Cleaning up unused objects.
An example of how to configure the check is:
<module name="SuperFinalize"/>
- Author:
- Rick Giles
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setSeverity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SuperFinalizeCheck
public SuperFinalizeCheck()
getMethodName
protected String getMethodName()
- Returns the name of the overriding method.
- Specified by:
getMethodName
in class AbstractSuperCheck
- Returns:
- the name of the overriding method.