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(); } } |