com.puppycrawl.tools.checkstyle.checks.coding

Class SuperFinalizeCheck

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

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

getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, 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

See Also:
AbstractSuperCheck