Příklad

public class ClassA {
protected void finalize() throws Throwable {

super .finalize();
//...
}
public void methodA {

try {
finalize();
//...
} catch ( Throwable t ) {
//...
}
}
}
Řešení
Odeberte vyvolání metody finalize().

public class ClassA {
protected void finalize() throws Throwable {

super .finalize();
//...
}
public void methodA {

//...
}

}