From 1a31e9dc0cbcc458b241293a479123954f55f28c Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 25 Apr 2023 12:10:35 +1200 Subject: [java] Suppress removal warnings for finalize() The "deprecation" warning has been changed to a "removal" warning with newer JDK versions. This needs to be addressed, but meanwhile it makes running the testsuite unusably noisy so suppressing it seems more helpful than not. Closes: #2556 --- Lib/java/java.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib') diff --git a/Lib/java/java.swg b/Lib/java/java.swg index 1c1a56e69..c35876534 100644 --- a/Lib/java/java.swg +++ b/Lib/java/java.swg @@ -1304,7 +1304,7 @@ SWIG_JAVABODY_PROXY(protected, protected, SWIGTYPE) SWIG_JAVABODY_TYPEWRAPPER(protected, protected, protected, SWIGTYPE) %typemap(javafinalize) SWIGTYPE %{ - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", "removal"}) protected void finalize() { delete(); } -- cgit v1.2.1