From b95dcb97de986a1e7dd7f7fda258e559f8d60b1c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Nov 2014 15:35:08 +0200 Subject: 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 Tested-by: Noel Grandin --- odk/examples/DevelopersGuide/ProfUNO/Lifetime/MyUnoObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odk') diff --git a/odk/examples/DevelopersGuide/ProfUNO/Lifetime/MyUnoObject.java b/odk/examples/DevelopersGuide/ProfUNO/Lifetime/MyUnoObject.java index 1d73270fc62f..080504c1b38b 100644 --- a/odk/examples/DevelopersGuide/ProfUNO/Lifetime/MyUnoObject.java +++ b/odk/examples/DevelopersGuide/ProfUNO/Lifetime/MyUnoObject.java @@ -37,8 +37,8 @@ class MyUnoObject implements com.sun.star.uno.XInterface @Override protected void finalize() throws Throwable { - super.finalize(); System.out.println( "finalizer called" ); + super.finalize(); } public static void main( String args[] ) throws InterruptedException -- cgit