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

Rule:  Finalizer6Checked automatically with code checker

Synopsis:Avoid calling finalize() explicitly
Language:Java
Severity Level:2
Category:Finalizer


Description:
Object.finalize() is called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
public class Foo {
 void foo() {
  Bar b = new Bar();
  b.finalize();
 }
}