Beispiel
public
class
ClassA {
protected void
finalize()
throws
Throwable {
super
.finalize();
//...
}
public
void
methodA {
try
{
finalize();
//...
}
catch
( Throwable t ) {
//...
}
}
}
Lösung
Entfernen Sie den Methodenaufruf von 'finalize()'.
public
class
ClassA {
protected void
finalize()
throws
Throwable {
super
.finalize();
//...
}
public
void
methodA {
//...
}
}