From db34df38f3d5ab3c0b35f57d581f7f327dc7dfee Mon Sep 17 00:00:00 2001 From: Sylvain Joubert Date: Mon, 23 Apr 2018 13:57:19 +0200 Subject: [Java] Suppress deprecation warning on finalize method Java 9 deprecates the finalize method. For now just suppress the deprecation warning. Fixes #1237 --- Lib/java/java.swg | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/java/java.swg') diff --git a/Lib/java/java.swg b/Lib/java/java.swg index 19e597bd9..bcab5a6fd 100644 --- a/Lib/java/java.swg +++ b/Lib/java/java.swg @@ -1273,6 +1273,7 @@ SWIG_JAVABODY_PROXY(protected, protected, SWIGTYPE) SWIG_JAVABODY_TYPEWRAPPER(protected, protected, protected, SWIGTYPE) %typemap(javafinalize) SWIGTYPE %{ + @SuppressWarnings("deprecation") protected void finalize() { delete(); } -- cgit v1.2.1