java: last statement in finalize() method should be call to super.finalize()

Change-Id: I1785c6cef1fe7c1990207a76c263cff388cbb7e1
Reviewed-on: https://gerrit.libreoffice.org/12375
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2014-11-11 15:35:08 +02:00
committed by Noel Grandin
parent 36ff1527c9
commit b95dcb97de
4 changed files with 7 additions and 4 deletions

View File

@@ -88,10 +88,11 @@ public final class Bug108825_Test extends ComplexTestCase {
private final class Dummy implements XDummy {
@Override
protected void finalize() {
protected void finalize() throws Throwable {
synchronized (lock) {
++finalizedCount;
}
super.finalize();
}
}