TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Finalizer4Checked automatically with code checker

Synopsis:Last statement in finalize method should be a call to super.finalize()
Language:Java
Severity Level:1
Category:Finalizer


Description:
If the finalize() is implemented, its last action should be to call super.finalize.
public class Foo {
   protected void finalize() {
       something();
       // neglected to call super.finalize()
   }
}