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

Rule:  Finalizer3Checked automatically with code checker

Synopsis:Finalize methods should not be overloaded
Language:Java
Severity Level:1
Category:Finalizer


Description:
Methods named finalize() should not have parameters. It is confusing and probably a bug to overload finalize(). It will not be called by the VM.
public class Foo {
   // this is confusing and probably a bug
   protected void finalize(int a) {
   }
}