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) { } } |