Object.finalize() is called by the Garbage Collector sometime after the object becomes unreferenced.
Overloading this method is misleading:
Object.finalize() and will get confused.Another name should be picked for the method.
public int finalize(int someParameter) { // Noncompliant
/* ... */
}
public int someBetterName(int someParameter) { // Compliant
/* ... */
}