Why is this an issue?
According to the official javadoc documentation, this Object.finalize() is called by the garbage collector on an object when garbage collection
determines that there are no more references to the object. Calling this method explicitly breaks this contract and so is misleading.
Noncompliant code example
public void dispose() throws Throwable {
this.finalize(); // Noncompliant
}
Resources